From 545a03da241ad9e2094b45af8202a9d131bfe6ba Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 1 Jan 2019 16:22:06 +0100 Subject: 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. --- internal/nametransform/diriv.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal') 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) -- cgit v1.2.3