[cpp-sp COMMIT] /branches/REL_2/shibd/shibd.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Sun Sep 4 00:58:45 BST 2011
Author: scantor
Date: Sun Sep 4 00:58:45 2011
New Revision: 3514
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3514&view=rev
Log:
Swap setgid/setuid calls
Modified:
branches/REL_2/shibd/shibd.cpp
Modified: branches/REL_2/shibd/shibd.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibd/shibd.cpp?rev=3514&r1=3513&r2=3514&view=diff
==============================================================================
--- branches/REL_2/shibd/shibd.cpp (original)
+++ branches/REL_2/shibd/shibd.cpp Sun Sep 4 00:58:45 2011
@@ -315,13 +315,13 @@
if (setup_signals() != 0)
return -1;
+ if (runasgroup > 0 && setgid(runasgroup) != 0) {
+ fprintf(stderr, "setgid failed, check -g option");
+ return -1;
+ }
+
if (runasuser > 0 && setuid(runasuser) != 0) {
fprintf(stderr, "setuid failed, check -u option");
- return -1;
- }
-
- if (runasgroup > 0 && setgid(runasgroup) != 0) {
- fprintf(stderr, "setgid failed, check -g option");
return -1;
}
More information about the commits
mailing list