slight format adjustment

This commit is contained in:
Huzaifa Sidhpurwala 2021-09-18 11:11:11 +05:30
parent 2c272e2e5d
commit 1b86810534

View file

@ -305,7 +305,7 @@ This is the hardest system call to use correctly because of everything you have
* If `S_ISLNK` macro is used, the stat buffer MUST come from lstat or from fstatat with `AT_SYMLINK_NOFOLLOW`
* If you are doing something really important, call fstat after opening and compare the before and after stat buffers before trusting them.
=== `setgid`, `setuid`:
==== `setgid`, `setuid`:
* Call these in the right order: groups and then uid.
* Always check the return code.
* If `setgid` & `setuid` are used, supplemental groups are not reset. This must be done with setgroups or initgroups before the uid change.