about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2012-07-24 13:45:59 +0200
committerFlorian Weimer <fweimer@redhat.com>2012-08-01 18:12:58 +0200
commit7e66ee5142deda977163d0a858c3d2883cae3f07 (patch)
treecc408911d9d2ccbfd6670c0605047486cece4557 /sysdeps
parentb290216f09a169a5207005d9cc545d21822bee62 (diff)
downloadglibc-7e66ee5142deda977163d0a858c3d2883cae3f07.tar.gz
glibc-7e66ee5142deda977163d0a858c3d2883cae3f07.tar.xz
glibc-7e66ee5142deda977163d0a858c3d2883cae3f07.zip
* 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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sys/fsuid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/fsuid.h b/sysdeps/unix/sysv/linux/sys/fsuid.h
index 2fd512e742..4494baf98b 100644
--- a/sysdeps/unix/sysv/linux/sys/fsuid.h
+++ b/sysdeps/unix/sysv/linux/sys/fsuid.h
@@ -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