libgocryptfs/internal/nametransform
Jakob Unterwurzacher bbf5b72fff WriteDirIV: delete incomplete gocryptfs.diriv file if write fails
If the underlying filesystem is full, writing to gocryptfs.diriv may
fail, and later fsck show this:

	OpenDir "xyz": could not read gocryptfs.diriv: wanted 16 bytes, got 0

Uncovered by xfstests generic/083.

Also fixes a fd leak in the error path.
2018-07-15 12:02:39 +02:00
..
dirivcache dirivcache: add better function comments + a sanity check on Store() 2017-09-03 13:53:50 +02:00
diriv.go WriteDirIV: delete incomplete gocryptfs.diriv file if write fails 2018-07-15 12:02:39 +02:00
longnames_test.go longnames: fix fsstress failure, use dirfd 2016-04-10 21:31:08 +02:00
longnames.go syscallcompat: Introduce unlinkat syscall with flags argument 2017-11-29 12:41:23 +01:00
names_test.go nametransform: harden name decryption against invalid input 2017-05-23 21:26:38 +02:00
names.go nametransform: Return error if decrypted name is '.' or '..' 2017-11-22 23:42:08 +01:00
pad16.go nametransform: harden name decryption against invalid input 2017-05-23 21:26:38 +02:00