From c270b21efc1d9ecbe5c913c733204f826e263747 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 22 Sep 2018 20:10:34 +0200 Subject: fusefrontend: get rid of os.File* wrapping Directly use int file descriptors for the dirfd and get rid of one level of indirection. --- init_dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init_dir.go') 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) -- cgit v1.2.3