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,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
|
||||
Reference in new issue
Block a user