On 12/12/2013 01:03, Vincent Rivière wrote :
I'm going to post a simple testcase.
See the attached program.
It uses the following sequence, on the same file:
- open()
- unlink()
- fstat()
On a normal filesystem, unlink() removes the file reference from the
filesystem, but the handle got with open() is still valid, so fstat()
succeeds.
On hostfs, unlink() incorrectly destroys the handle obtained via
open(), then fstat() fails with "No such file or directory".
This bug prevents using the "here document" syntax in bash when TMPDIR
is set to a hostfs directory.