mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
Update src/test/ui/command/command-setgroups.rs
Co-authored-by: Ashley Mannix <kodraus@hey.com>
This commit is contained in:
parent
41e6b23000
commit
23f9314327
@ -11,6 +11,12 @@ use std::process::Command;
|
||||
use std::os::unix::process::CommandExt;
|
||||
|
||||
fn main() {
|
||||
#[cfg(unix)]
|
||||
run()
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn run() {
|
||||
let max_ngroups = unsafe { libc::sysconf(libc::_SC_NGROUPS_MAX) };
|
||||
let max_ngroups = max_ngroups as u32 + 1;
|
||||
let vec: Vec<u32> = (0..max_ngroups).collect();
|
||||
|
Loading…
Reference in New Issue
Block a user