summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/fs.go
diff options
context:
space:
mode:
authorSebastian Lackner2019-01-06 19:53:26 +0100
committerrfjakob2019-01-06 21:00:17 +0100
commitaa2fa24c4290da4f14a2405c40d6c1e52cb63b25 (patch)
tree27f57c0a3b3d6dd34a34562105de9ac0f9f46aec /internal/fusefrontend/fs.go
parent40d2427fd7f788262dc3bf220f789b7bd5fe781b (diff)
fusefrontend: Check result of Fchmod syscall.
Fixes https://github.com/rfjakob/gocryptfs/issues/328
Diffstat (limited to 'internal/fusefrontend/fs.go')
-rw-r--r--internal/fusefrontend/fs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go
index f35fafd..a0e9d9f 100644
--- a/internal/fusefrontend/fs.go
+++ b/internal/fusefrontend/fs.go
@@ -204,7 +204,7 @@ func (fs *FS) openWriteOnlyFile(dirfd int, cName string, newFlags int) (*File, f
fs.openWriteOnlyLock.RLock()
}()
// Relax permissions and revert on return
- syscall.Fchmod(woFd, perms|0400)
+ err = syscall.Fchmod(woFd, perms|0400)
if err != nil {
tlog.Warn.Printf("openWriteOnlyFile: changing permissions failed: %v", err)
return nil, fuse.ToStatus(err)