Skip to content

Commit 2556400

Browse files
committed
Replace setuid, setgid with setreuid, setregid
1 parent f01add1 commit 2556400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/redox/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ impl Command {
287287
}
288288

289289
if let Some(g) = self.gid {
290-
t!(cvt(libc::setgid(g)));
290+
t!(cvt(libc::setregid(g, g)));
291291
}
292292
if let Some(u) = self.uid {
293-
t!(cvt(libc::setuid(u)));
293+
t!(cvt(libc::setreuid(u, u)));
294294
}
295295
if let Some(ref cwd) = self.cwd {
296296
t!(cvt(libc::chdir(cwd)));

0 commit comments

Comments
 (0)