You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #441 - billiob:setfsuid, r=alexcrichton
Add setfsgid()/setfsuid() on linux
Tested with the following code ran as root and then looking at the owner/group of `/tmp/foo.txt`.
```rust
extern crate libc;
use std::fs::File;
fn main() {
unsafe {
libc::setfsuid(1234u32);
libc::setfsgid(5678u32);
}
File::create("/tmp/foo.txt").ok();
}
```
0 commit comments