diff --git a/crates/libcontainer/src/rootfs/mount.rs b/crates/libcontainer/src/rootfs/mount.rs index 647a71c6..e86e05ef 100644 --- a/crates/libcontainer/src/rootfs/mount.rs +++ b/crates/libcontainer/src/rootfs/mount.rs @@ -497,7 +497,7 @@ impl Mount { err })?; - if src.is_file() { + if src.is_file() && !dest.exists() { OpenOptions::new() .create(true) .write(true) diff --git a/hack/debug.bt b/hack/debug.bt index 6b104330..4d2e78dc 100755 --- a/hack/debug.bt +++ b/hack/debug.bt @@ -78,8 +78,6 @@ tracepoint:syscalls:sys_enter_setresuid printf("ruid=%d, euid=%d, suid=%d\n", args->ruid, args->euid, args->suid); } - - END { clear(@filename);