summaryrefslogtreecommitdiff
path: root/internal/nametransform/longnames.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-01-10 07:27:04 +0100
committerJakob Unterwurzacher2021-01-10 07:27:04 +0100
commitf3394ae286d65492483579e038acb33edd8ca274 (patch)
tree51fadd715b5caab1f3b21e20f1fecc05a7d247d6 /internal/nametransform/longnames.go
parentde108d3fc06dd9de404c497dfa9faa26956f43e3 (diff)
nametransform: move permission constants to perms.go
Prep for https://github.com/rfjakob/gocryptfs/issues/539
Diffstat (limited to 'internal/nametransform/longnames.go')
-rw-r--r--internal/nametransform/longnames.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/nametransform/longnames.go b/internal/nametransform/longnames.go
index 1bbcbb6..aa463a1 100644
--- a/internal/nametransform/longnames.go
+++ b/internal/nametransform/longnames.go
@@ -136,7 +136,7 @@ func (n *NameTransform) WriteLongNameAt(dirfd int, hashName string, plainName st
// Write the encrypted name into hashName.name
fdRaw, err := syscallcompat.Openat(dirfd, hashName+LongNameSuffix,
- syscall.O_WRONLY|syscall.O_CREAT|syscall.O_EXCL, 0400)
+ syscall.O_WRONLY|syscall.O_CREAT|syscall.O_EXCL, namePerms)
if err != nil {
// Don't warn if the file already exists - this is allowed for renames
// and should be handled by the caller.