diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-05-14 21:34:12 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-05-14 21:34:12 +0000 |
commit | 815a789b86e3b986e10e2e20d2ef05ab3b8740a9 (patch) | |
tree | 925e798ef2ba77ece3da5a02b4e81e77808d8637 /x11/slim/files/patch-switchuser.cpp | |
parent | - Add new port: devel/R-cran-caTools (diff) |
- Update to 1.3.5.
PR: ports/177857
Submitted by: Kevin Zheng <kevinz5000@gmail.com>
Approved by: Henry Hu <henry.hu.sh@gmail.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=318203
Diffstat (limited to 'x11/slim/files/patch-switchuser.cpp')
-rw-r--r-- | x11/slim/files/patch-switchuser.cpp | 20 |
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) ) { |