Skip to content

Commit

Permalink
remove unsupported syscall flag on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
mar1n3r0 committed Jul 17, 2023
1 parent 97adb4f commit 5f766de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/filewriter_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package files
import (
"os"
"strings"
"syscall"
)

var invalidChars = `/` + "\x00"
Expand All @@ -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)
}

0 comments on commit 5f766de

Please sign in to comment.