aboutsummaryrefslogtreecommitdiffstats
path: root/x11/slim/files/patch-switchuser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/slim/files/patch-switchuser.cpp')
-rw-r--r--x11/slim/files/patch-switchuser.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/x11/slim/files/patch-switchuser.cpp b/x11/slim/files/patch-switchuser.cpp
index 056a134359f6..8c2a94e7ceeb 100644
--- a/x11/slim/files/patch-switchuser.cpp
+++ b/x11/slim/files/patch-switchuser.cpp
@@ -1,13 +1,11 @@
---- switchuser.cpp 2009-10-14 16:28:20.000000000 +0800
-+++ switchuser.cpp 2009-10-14 16:34:23.000000000 +0800
-@@ -38,6 +38,8 @@
+--- ./switchuser.cpp.orig 2012-12-31 07:03:42.000000000 -0600
++++ ./switchuser.cpp 2013-03-23 14:10:35.000000000 -0500
+@@ -36,6 +36,8 @@
void SwitchUser::SetUserId() {
- if( (Pw == 0) ||
-+ (setsid() == -1) ||
-+ (setlogin(Pw->pw_name) != 0) ||
- (initgroups(Pw->pw_name, Pw->pw_gid) != 0) ||
- (setgid(Pw->pw_gid) != 0) ||
- (setuid(Pw->pw_uid) != 0) ) {
-
-
+ if( (Pw == 0) ||
++ (setsid() == -1) ||
++ (setlogin(Pw->pw_name) != 0) ||
+ (initgroups(Pw->pw_name, Pw->pw_gid) != 0) ||
+ (setgid(Pw->pw_gid) != 0) ||
+ (setuid(Pw->pw_uid) != 0) ) {