summaryrefslogtreecommitdiff
path: root/internal/file/flags.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-24 21:58:05 +0200
committerPaul Buetow <paul@buetow.org>2025-03-24 21:58:05 +0200
commit91bdec412bf5701c8dfe4b5e1a8ec841a18c004a (patch)
tree18ca76a712c25de5147ec3072054a9699ef1c5cd /internal/file/flags.go
parent26be49ea3cc2516ab7d26b629e7edc93a296596d (diff)
ignore ior process itself
Diffstat (limited to 'internal/file/flags.go')
-rw-r--r--internal/file/flags.go1
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")