Initial upload to Gitea
This commit is contained in:
1 parent
78193254ad
commit
8478998cae
1485 files changed
+461025
-42348
No files matched your search
@@ -0,0 +1,14 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
// openNoFollow stubs O_NOFOLLOW for the windows build: Go's syscall package
|
||||
// for windows has no such flag, so the constant cannot even be referenced
|
||||
// there. The daemon's deployment target is Linux (the entire pathsafe.go
|
||||
// containment layer - openat2/RESOLVE_BENEATH, the *at() family, RENAME_NOREPLACE
|
||||
// - is linux-only; non-Linux builds use the pathsafe_other.go fallbacks), so
|
||||
// dropping the flag keeps those builds compiling with the same "never worse
|
||||
// than the by-name behavior they replaced" caveat the rest of the non-Linux
|
||||
// path carries. Callers that depend on the regular-file gate still enforce it
|
||||
// after the open (safeOpenRegularAt / safeOpenWriteAt / safeWriteAt).
|
||||
const openNoFollow = 0
|
||||
Reference in new issue
Block a user