From: Thomas Glanzmann Date: Mon, 16 Jul 2007 19:56:00 GMT Subject: Re: [PATCH] Do _not_ call unlink on a directory Message-ID: <20070716195600.GC16878@cip.informatik.uni-erlangen.de> In-Reply-To: <469BC17D.60806@slamb.org> Hello, > If arbitrary other tasks are running, the only way to be absolutely > certain you're not calling unlink() in a directory is to never call > unlink(). there is one way to do it safe but it is so ugly that it is unacceptable: don't call unlink as a privileged user (eg. root). So I hope that one of the patches make it into git soon. I like the second patch better because it does less system calls. Not that it matters. For my co-workers I already build a git version with the patch in so that they can continue to work as root. Don't even think about asking. Thomas