mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* posix/unistd.h (setuid, setreuid, seteuid, setresuid):
Declare with warn_unused_result. (setgid, setregid, setegid, setresgid): Likewise. * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid): Likewise. * WUR-REPORT: Remove set*id functions.
This commit is contained in:
@ -25,10 +25,10 @@ __BEGIN_DECLS
|
||||
|
||||
/* Change uid used for file access control to UID, without affecting
|
||||
other privileges (such as who can send signals at the process). */
|
||||
extern int setfsuid (__uid_t __uid) __THROW;
|
||||
extern int setfsuid (__uid_t __uid) __THROW __wur;
|
||||
|
||||
/* Ditto for group id. */
|
||||
extern int setfsgid (__gid_t __gid) __THROW;
|
||||
extern int setfsgid (__gid_t __gid) __THROW __wur;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user