aboutsummaryrefslogtreecommitdiff
path: root/internal/nametransform/diriv.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-01 16:22:06 +0100
committerJakob Unterwurzacher2019-01-01 16:23:28 +0100
commit545a03da241ad9e2094b45af8202a9d131bfe6ba (patch)
treeed46c3ab7b62fd2a0dcbbb78a8c1e074b4eba2a3 /internal/nametransform/diriv.go
parent5713154468e141406581a330ff7dd1fcd392da82 (diff)
nametransform: comments: directly link to ioutil.WriteFile fix
So the reader does not have to read through the whole ticket. The commit message has a nice summary of the problem.
Diffstat (limited to 'internal/nametransform/diriv.go')
-rw-r--r--internal/nametransform/diriv.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/nametransform/diriv.go b/internal/nametransform/diriv.go
index 81e44da..b45ae52 100644
--- a/internal/nametransform/diriv.go
+++ b/internal/nametransform/diriv.go
@@ -90,7 +90,8 @@ func WriteDirIV(dirfd int, dir string) error {
iv := cryptocore.RandBytes(DirIVLen)
file := filepath.Join(dir, DirIVFilename)
// 0400 permissions: gocryptfs.diriv should never be modified after creation.
- // Don't use "ioutil.WriteFile", it causes trouble on NFS: https://github.com/rfjakob/gocryptfs/issues/105
+ // Don't use "ioutil.WriteFile", it causes trouble on NFS:
+ // https://github.com/rfjakob/gocryptfs/commit/7d38f80a78644c8ec4900cc990bfb894387112ed
fdRaw, err := syscallcompat.Openat(dirfd, file, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0400)
if err != nil {
tlog.Warn.Printf("WriteDirIV: Openat: %v", err)