Jim Meyering <[EMAIL PROTECTED]> writes:

> In reviewing parts of remove.c I noted (again) the race condition on
> systems with an unlink that may remove directories, so added this comment:
>
> +/* If anyone knows of another system for which unlink can never
> +   remove a directory, please report it to [EMAIL PROTECTED]
> +   The code below is slightly more efficient if it *knows* that
> +   unlink(2) cannot possibly unlink a directory.  */
>
> On non-glibc systems that race condition means that there's a window
> via which a privileged rm user might be tricked into unlinking a
> nonempty directory.

Why do you think that has anything to do with glibc?

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to