Messages in this thread | | | From | (Linus Torvalds) | Subject | Re: rmdir problem with remove("foo/.") | Date | 26 Mar 1999 23:06:45 GMT |
| |
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/
| |