[LTP] [PATCH 3/4] syscalls/chmod03: Convert to new API

Cyril Hrubis chrubis@suse.cz
Tue Aug 10 11:42:20 CEST 2021


Hi!
Pushed with a minor changes, thanks.

> +} tcases[] = {
> +	{bad_dir, ENAMETOOLONG, "chroot(pathname more than VFS_MAXNAMELEN)"},
> +	{fname, ENOTDIR, "chroot(not a directory)"},
> +	{nonexistent_dir, ENOENT, "chroot(path does not exists)"},
> +	{(char *)-1, EFAULT, "chroot(a path pointing to an invalid address)"},
> +	{symbolic_dir, ELOOP, "chroot(two symbolic directory who point to each other)"}
>  };

I've shortened the descriptions here a bit.

>  	/*
>  	 * create two symbolic directory who point to each other to
>  	 * test ELOOP.
>  	 */

And also remove this comment that have been commenting the obvious.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list