hed_file_commit: create the file when opening the read fd
commit6087fb591726d49f19b2bb0027716fcbb8dc470e
authorPetr Tesarik <petr@tesarici.cz>
Sun, 21 Oct 2012 14:11:57 +0000 (21 16:11 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Sun, 21 Oct 2012 14:11:57 +0000 (21 16:11 +0200)
treee9e64eaf627a79e2c9fbcb00c0c55de977617357
parent553f030a5ce6e8611cf050ef3b3a1504d91dd24c
hed_file_commit: create the file when opening the read fd

If the target file doesn't exist, we have to get a read descriptor,
so we can create the file when opening that one. This makes open flags
for the write descriptor constant.

Plus, why did we open the write descriptor read-write? We only use it
for writing...
libhed/file.c