| ... | @@ -299,14 +299,14 @@ pub const ChildProcess = struct { | ... | @@ -299,14 +299,14 @@ pub const ChildProcess = struct { |
| 299 | |err| forkChildErrReport(err_pipe[1], err); | 299 | |err| forkChildErrReport(err_pipe[1], err); |
| 300 | } | 300 | } |
| 301 | | 301 | |
| 302 | if (self.uid) |uid| { | | |
| 303 | os.posix_setreuid(uid, uid) %% |err| forkChildErrReport(err_pipe[1], err); | | |
| 304 | } | | |
| 305 | | | |
| 306 | if (self.gid) |gid| { | 302 | if (self.gid) |gid| { |
| 307 | os.posix_setregid(gid, gid) %% |err| forkChildErrReport(err_pipe[1], err); | 303 | os.posix_setregid(gid, gid) %% |err| forkChildErrReport(err_pipe[1], err); |
| 308 | } | 304 | } |
| 309 | | 305 | |
| | 306 | if (self.uid) |uid| { |
| | 307 | os.posix_setreuid(uid, uid) %% |err| forkChildErrReport(err_pipe[1], err); |
| | 308 | } |
| | 309 | |
| 310 | os.posixExecve(self.argv, env_map, self.allocator) %% | 310 | os.posixExecve(self.argv, env_map, self.allocator) %% |
| 311 | |err| forkChildErrReport(err_pipe[1], err); | 311 | |err| forkChildErrReport(err_pipe[1], err); |
| 312 | } | 312 | } |