//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