mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-24 17:10:52 +08: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.
10 lines
181 B
Go
10 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)
|
|
}
|