slight format adjustment
This commit is contained in:
parent
2c272e2e5d
commit
1b86810534
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue