lkml.org 
[lkml]   [1999]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: rmdir problem with remove("foo/.")
Date
In article <199903262119.QAA05216@mojo.mathworks.com>,
Greg Wolodkin <greg@mathworks.com> wrote:
>
>[1.] glibc remove("foo/.") removes foo with 2.2.2, not with 2.0.36

Yes. It's a known deficiency in 2.0.x.

Basically, you shouldn't count on 'remove("dir/.")' (or rmdir, which is
what the low-level interface is anyway) removing the directory, because
it's not guaranteed to work (other unixes don't tend to support the
notion, and Linux doesn't do it in 2.0.x either).

Or did you mean that you _didn't_ want it to remove "foo"? If you didn't
mean for it to remove "foo", then why did you ask the kernel to do it?

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.035 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site