aboutsummaryrefslogtreecommitdiff
path: root/src/process.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-08-15 17:33:40 +0000
committerMike Buland <eichlan@xagasoft.com>2011-08-15 17:33:40 +0000
commitbc6952f06b9d1cff7417d3f71ce5a65704ebbb02 (patch)
tree88c4e4527669b258015c076a02ad0c084cba015a /src/process.cpp
parentbc9e6678f6b917f67317a2987866bf1787a3e076 (diff)
downloadlibbu++-bc6952f06b9d1cff7417d3f71ce5a65704ebbb02.tar.gz
libbu++-bc6952f06b9d1cff7417d3f71ce5a65704ebbb02.tar.bz2
libbu++-bc6952f06b9d1cff7417d3f71ce5a65704ebbb02.tar.xz
libbu++-bc6952f06b9d1cff7417d3f71ce5a65704ebbb02.zip
You can setgid now too.
Diffstat (limited to '')
-rw-r--r--src/process.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.cpp b/src/process.cpp
index b3f2801..e6b9f3d 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -154,6 +154,10 @@ void Bu::Process::gexec( Flags eFlags, const char *sName, char *const argv[] )
154 ::close( iaStdErr[0] ); 154 ::close( iaStdErr[0] );
155 dup2( iaStdErr[1], 2 ); 155 dup2( iaStdErr[1], 2 );
156 } 156 }
157 if( (opt.eFlags&Options::SetGid) )
158 {
159 setgid( opt.iGid );
160 }
157 if( (opt.eFlags&Options::SetUid) ) 161 if( (opt.eFlags&Options::SetUid) )
158 { 162 {
159 setuid( opt.iUid ); 163 setuid( opt.iUid );