mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 13:11:05 +00:00
Tighten existing spill blob permissions on startup, charge 32 bytes per hook range pair, and open uploads with O_NOFOLLOW on Unix. Tests cover the startup walk, the 32-byte charge and the no-follow open.
9 lines
181 B
Go
9 lines
181 B
Go
//go:build windows
|
|
|
|
package server
|
|
|
|
import "os"
|
|
|
|
func openUploadFileNoFollow(dest string) (*os.File, error) {
|
|
return os.OpenFile(dest, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o644)
|
|
}
|