relibc: fix setgroups and unused ENOSYS import
This commit is contained in:
@@ -4,7 +4,7 @@ use syscall;
|
||||
|
||||
use crate::{
|
||||
error::{Errno, Result, ResultExt},
|
||||
header::{errno::{EINVAL, ENOSYS}, fcntl, termios},
|
||||
header::{errno::{EINVAL}, fcntl, termios},
|
||||
platform::{
|
||||
Pal, Sys,
|
||||
types::{c_int, c_ulong, c_ulonglong, c_void, pid_t},
|
||||
|
||||
@@ -1341,7 +1341,7 @@ impl Pal for Sys {
|
||||
Err(_) => return Err(Errno(ENOMEM)),
|
||||
};
|
||||
let mut file = match File::open(
|
||||
CStr::from_bytes_with_nul(path_c.as_bytes_with_nul()).unwrap(),
|
||||
CStr::borrow(&path_c),
|
||||
fcntl::O_WRONLY | fcntl::O_CLOEXEC,
|
||||
) {
|
||||
Ok(f) => f,
|
||||
|
||||
Reference in New Issue
Block a user