[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] hostfs bug with unlink() when an open handle exists



On 12/12/13 00:14, Vincent Rivière wrote:
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.


This is probably better going to the aranym lists as the hostfs code in FreeMiNT is very thin and passes everything off to aranym.

Alan.