From 43c7a6e46df006fa8c4520a508ff6bb35b2ac1a6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 22 Sep 2026 17:47:29 +0200 Subject: [PATCH] wip5 fix spy log perms --- src/drivers.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers.rs b/src/drivers.rs index 2469028..8792be7 100644 --- a/src/drivers.rs +++ b/src/drivers.rs @@ -8917,6 +8917,11 @@ mod tests { fs::set_permissions(&frozen_source_root, fs::Permissions::from_mode(0o700))?; let log = temp.path().join("git-invocations.log"); + // Pre-created and world-writable: the spy runs under the + // unprivileged Git identity, which cannot create a new file in this + // root-owned 0755 directory, only append to one that already exists. + fs::write(&log, b"")?; + fs::set_permissions(&log, fs::Permissions::from_mode(0o666))?; let spy = temp.path().join("git-spy.sh"); fs::write( &spy,