lkml.org 
[lkml]   [1997]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: rmdir(".") works, and causes havoc
Date
In article <19970805192354.39644@jagunet.com>,
John Kodis <kodis@jagunet.com> wrote:
>On Mon, Aug 04, 1997 at 09:23:24AM -0700, Linus Torvalds wrote:
>
>> I'll probably just have to add a test for "." and ".." by hand to rmdir().
>> Sad, because it _could_ be potentially useful, it's just not allowed in
>> POSIX.
>
>You could follow the precident set by the FSF. Allow the new enhanced
>behavior by default, but provide a switch, for example:
>
> $ echo "1" > /proc/POSIXLY_CORRECT
>
>To force the POSIX-mandated brain-damage.

I much more like the original FSF name which got shafted due to some
bore complaining about it: "POSIX_ME_HARDER"

Linus



\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site