summaryrefslogtreecommitdiff
path: root/src/process.cpp
diff options
context:
space:
mode:
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 );