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
..
2018-04-02 18:32:30 +02:00
2017-05-31 08:21:36 +02:00
2018-07-01 22:00:06 +02:00
2017-04-29 14:50:58 +02:00
2017-04-29 14:50:58 +02:00
2018-07-01 20:56:22 +02:00