Re: [PATCH] Do _not_ call unlink on a directory
- From
- Thomas Glanzmann <thomas@glanzmann.de>
- Date
- Jul 16, 2007, 20:39 UTC
- Message-ID
- <20070716203950.GI16878@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <alpine.LFD.0.999.0707161332280.20061@woody.linux-foundation.org>
Hello,
> No, but we don't *want* the "rmdir for directories" part!
that is what I meant. We call unlink because we want unlink to _fail_ on directories while it deletes file. I forgot about the original discussion but Johannes refreshed my memory. If a file in our history becomes a directory we want to get it out of our way. And we want to do that by call unlink.
Thomas