diff options
author | Jakob Unterwurzacher | 2018-09-22 20:10:34 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-09-23 12:17:26 +0200 |
commit | c270b21efc1d9ecbe5c913c733204f826e263747 (patch) | |
tree | f001342e38ab81eeea1292c7a405d30321624b6d /init_dir.go | |
parent | 22fba4ac3ed09ba07d1defb60436fb7a17095d09 (diff) |
fusefrontend: get rid of os.File* wrapping
Directly use int file descriptors for the dirfd
and get rid of one level of indirection.
Diffstat (limited to 'init_dir.go')
-rw-r--r-- | init_dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init_dir.go b/init_dir.go index e264cf0..6bc977f 100644 --- a/init_dir.go +++ b/init_dir.go @@ -96,7 +96,7 @@ func initDir(args *argContainer) { // Forward mode with filename encryption enabled needs a gocryptfs.diriv file // in the root dir if !args.plaintextnames && !args.reverse { - err = nametransform.WriteDirIV(nil, args.cipherdir) + err = nametransform.WriteDirIV(-1, args.cipherdir) if err != nil { tlog.Fatal.Println(err) os.Exit(exitcodes.Init) |