We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39cbb71 commit aa4c8ceCopy full SHA for aa4c8ce
src/transport/local.rs
@@ -371,6 +371,11 @@ mod test {
371
use std::fs;
372
use std::os::unix::prelude::PermissionsExt;
373
374
+ if nix::unistd::Uid::effective().is_root() {
375
+ println!("Skipping permissions test when running as root");
376
+ return;
377
+ }
378
+
379
let temp = assert_fs::TempDir::new().unwrap();
380
let transport = Transport::local(temp.path());
381
temp.child("file").touch().unwrap();
0 commit comments