[LTP] [PATCH v3] syscalls/chown: Rewrite chown/chown03.c with the new api
Cyril Hrubis
chrubis@suse.cz
Mon Apr 19 16:55:47 CEST 2021
Hi!
> + SAFE_SETEUID(0);
> + SAFE_CHOWN(FILENAME, -1, 0);
> + SAFE_CHMOD(FILENAME, NEW_PERMS);
> + SAFE_SETEUID(ltpuser->pw_uid);
LTP uses Linux kernel conding style which requires tabs for
indentation, while this code uses four spaces.
You can use checkpatch.pl shipped along with Linux kernel sources to
check coding style before sending patches to the list.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list