Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit a28c6a5

Browse files
Do not make the /tmp/sketches directory world-writable or world-readable
In practice, a umask also applies to these permissions, so it would not be world-writable anyway. Better to enforce this, and remove the world-readability at the same time.
1 parent 34103cb commit a28c6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (p program) run() {
187187
}
188188
}
189189

190-
os.Mkdir("/tmp/sketches", 0777)
190+
os.Mkdir("/tmp/sketches", 0700)
191191

192192
go addWatcherForManuallyAddedSketches("/tmp/sketches", sketchFolder, status)
193193

0 commit comments

Comments
 (0)