diff --git a/files/filewriter_unix.go b/files/filewriter_unix.go index e762f2586..15312c8ec 100644 --- a/files/filewriter_unix.go +++ b/files/filewriter_unix.go @@ -5,7 +5,6 @@ package files import ( "os" "strings" - "syscall" ) var invalidChars = `/` + "\x00" @@ -15,5 +14,5 @@ func isValidFilename(filename string) bool { } func createNewFile(path string) (*os.File, error) { - return os.OpenFile(path, os.O_EXCL|os.O_CREATE|os.O_WRONLY|syscall.O_NOFOLLOW, 0666) + return os.OpenFile(path, os.O_EXCL|os.O_CREATE|os.O_WRONLY, 0666) }