diff options
author | Jose M Perez | 2021-08-12 22:48:34 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-08-19 18:05:54 +0200 |
commit | 8f94083a2114c3aef4bc0320065e0374c420ea4a (patch) | |
tree | d6b56a31e58a99e8a46b4663d6d63b0c3be425b8 /init_dir.go | |
parent | 02c91d73ce2c63f999f2c29cf61d55caef19c67b (diff) |
Flag -zerodiriv to create all diriv as all zero byte files
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 54a44e4..ce5f98d 100644 --- a/init_dir.go +++ b/init_dir.go @@ -103,7 +103,7 @@ func initDir(args *argContainer) { // Open cipherdir (following symlinks) dirfd, err := syscall.Open(args.cipherdir, syscall.O_DIRECTORY|syscallcompat.O_PATH, 0) if err == nil { - err = nametransform.WriteDirIVAt(dirfd) + err = nametransform.WriteDirIVAt(dirfd, !args.zerodiriv) syscall.Close(dirfd) } if err != nil { |