diff options
Diffstat (limited to 'internal/file/flags.go')
| -rw-r--r-- | internal/file/flags.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/file/flags.go b/internal/file/flags.go index 002de9c..d3d5819 100644 --- a/internal/file/flags.go +++ b/internal/file/flags.go @@ -48,6 +48,7 @@ func flagsToStr(flags int32) string { } func flagsToStrs(flags int32) (result []string) { + if int(flags)&(os.O_WRONLY|os.O_RDWR) == 0 { // Must be read only then result = append(result, "O_RDONLY") |
