Skip to content

Commit f77c534

Browse files
committed
Auto merge of #802 - Mic92:setfsuid, r=alexcrichton
add setfsgid/setfsuid on Linux
2 parents 84da91c + e859f49 commit f77c534

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,6 @@ extern {
12281228
riovcnt: ::c_ulong,
12291229
flags: ::c_ulong) -> isize;
12301230
pub fn reboot(how_to: ::c_int) -> ::c_int;
1231-
pub fn setfsgid(gid: ::gid_t) -> ::c_int;
1232-
pub fn setfsuid(uid: ::uid_t) -> ::c_int;
12331231

12341232
// Not available now on Android
12351233
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/notbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,8 @@ extern {
970970
options: ::c_int) -> ::c_int;
971971
pub fn setreuid(ruid: ::uid_t, euid: ::uid_t) -> ::c_int;
972972
pub fn setregid(rgid: ::gid_t, egid: ::gid_t) -> ::c_int;
973+
pub fn setfsgid(gid: ::gid_t) -> ::c_int;
974+
pub fn setfsuid(uid: ::uid_t) -> ::c_int;
973975
pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t,
974976
suid: *mut ::uid_t) -> ::c_int;
975977
pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t,

0 commit comments

Comments
 (0)