Skip to content

Commit 38b4e09

Browse files
committed
protect cached binaries from other users
1 parent 0eb85bb commit 38b4e09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ else
8181
tmproot="$TMPDIR/c.cache.$USER"
8282
fi
8383
mkdir -p "$tmproot"
84+
chmod 700 "$tmproot"
8485

8586
# decide on a hash function by using the first one we find
8687
potential_hashes=(md5sum sha256sum sha1sum shasum)

0 commit comments

Comments
 (0)