projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pty: Activate the signature wrapper of forkpty.
[gnulib.git]
/
lib
/
idpriv-drop.c
diff --git
a/lib/idpriv-drop.c
b/lib/idpriv-drop.c
index
f4929d4
..
ed921b9
100644
(file)
--- a/
lib/idpriv-drop.c
+++ b/
lib/idpriv-drop.c
@@
-1,5
+1,5
@@
/* Dropping uid/gid privileges of the current process permanently.
/* Dropping uid/gid privileges of the current process permanently.
- Copyright (C) 2009-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
3
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-42,7
+42,7
@@
idpriv_drop (void)
setresuid. */
if (setresgid (gid, gid, gid) < 0)
return -1;
setresuid. */
if (setresgid (gid, gid, gid) < 0)
return -1;
-#elif HAVE_SETREGID /* MacOS X, NetBSD, AIX, IRIX, Solaris, OSF/1, Cygwin */
+#elif HAVE_SETREGID /* Mac
OS X, NetBSD, AIX, IRIX, Solaris, OSF/1, Cygwin */
if (setregid (gid, gid) < 0)
return -1;
#elif HAVE_SETEGID /* Solaris 2.4 */
if (setregid (gid, gid) < 0)
return -1;
#elif HAVE_SETEGID /* Solaris 2.4 */
@@
-61,7
+61,7
@@
idpriv_drop (void)
is used seems to vary a lot." */
if (setresuid (uid, uid, uid) < 0)
return -1;
is used seems to vary a lot." */
if (setresuid (uid, uid, uid) < 0)
return -1;
-#elif HAVE_SETREUID /* MacOS X, NetBSD, AIX, IRIX, Solaris, OSF/1, Cygwin */
+#elif HAVE_SETREUID /* Mac
OS X, NetBSD, AIX, IRIX, Solaris, OSF/1, Cygwin */
if (setreuid (uid, uid) < 0)
return -1;
#elif HAVE_SETEUID /* Solaris 2.4 */
if (setreuid (uid, uid) < 0)
return -1;
#elif HAVE_SETEUID /* Solaris 2.4 */