Skip to content

Commit d6e534f

Browse files
Test to see if GH Pages provider is deploying linux or Mac OS version
1 parent 522497a commit d6e534f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libproc/proc_pid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ pub fn am_root() -> bool {
552552
unsafe { libc::getuid() == 0 }
553553
}
554554

555+
/// Linux doc page
555556
#[cfg(target_os = "linux")]
556557
pub fn am_root() -> bool {
557558
// when this becomes stable in rust libc then we can remove this function or combine for mac and linux

0 commit comments

Comments
 (0)