Initial upload to Gitea

This commit is contained in:
antonn committed 2026-11-30 16:32:37 +00:00
1 parent 78193254ad
commit 8478998cae
1485 files changed
+461025 -42348

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
//go:build !windows
package main
import "syscall"
// openNoFollow is the O_NOFOLLOW flag handed to os.OpenFile and the safeOpen*/
// safeWrite* helpers: the final path component must never be followed through
// a symlink planted in a server directory. The targets this daemon builds for
// (linux, darwin, the BSDs) define it in syscall; windows does not and gets a
// dedicated stub - see opennofollow_windows.go.
const openNoFollow = syscall.O_NOFOLLOW