cfg fix 2

This commit is contained in:
Artyom Pavlov 2019-08-19 20:01:02 +00:00 committed by GitHub
parent 1417f53863
commit 1dd2d3076d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,8 @@ impl Command {
cvt_r(|| libc::dup2(fd, libc::STDERR_FILENO))?;
}
if cfg!(not(any(target_os = "l4re"))) {
#[cfg(not(any(target_os = "l4re")))]
{
if let Some(u) = self.get_gid() {
cvt(libc::setgid(u as gid_t))?;
}