diff options
author | Sebastian Lackner | 2019-01-06 19:53:26 +0100 |
---|---|---|
committer | rfjakob | 2019-01-06 21:00:17 +0100 |
commit | aa2fa24c4290da4f14a2405c40d6c1e52cb63b25 (patch) | |
tree | 27f57c0a3b3d6dd34a34562105de9ac0f9f46aec /internal/fusefrontend/fs.go | |
parent | 40d2427fd7f788262dc3bf220f789b7bd5fe781b (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.go | 2 |
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) |