From 5f766dec1cad769406fe040a9574abf6bd3ac7ed Mon Sep 17 00:00:00 2001 From: mar1n3r0 Date: Mon, 17 Jul 2023 13:48:16 +0300 Subject: [PATCH] remove unsupported syscall flag on wasm --- files/filewriter_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }