Wookey wrote:
> We've just found that rmdir is not returning ENOTENT when asked to
> delete a directory containign files.
>
> This is with kernel 2.6.29.1 on debian armel on a balloon3. (We
> noticed because fontconfig's posinst script removes old-format cache
> files and then uses find and rmdir to remove all the dirs that are now
> empty. On our system it merrily removes all your fonts.
>
> strace shows that rmdir 'test' just does it, whereas on a normal
> machine it return ENOTENT.
I seem to recall seeing a report on this list suggesting that it removed
the dir without deleting the files first! If that's the case it's rather
more serious. Hopefully the fix will cover that but maybe needs checking.
I am going from memory here so please excuse the noise if that is not
correct.
best regards.
>
> This is with yaffs_fs 1.76, yaffs_guts 1.81, as of 2009-03-06. I'll
> check if 'latest' helps at all, but clues as to what might be wrong
> are most welcome.
>
> The code round yaffs_unlink and yaffs_Unlink all looks like it does
> the right thing, but it's clearly going wrong in some way.
>
> It works OK on a 2.4 kernel machine with correspondingly ancient
> version of yaffs we have handy to test.
>
> Wookey