lkml.org 
[lkml]   [2003]   [Jul]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From"Andrey Borzenkov" <>
SubjectRe[2]: Are "," and ".." in directory required?
DateThu, 10 Jul 2003 14:19:21 +0400
-----Original Message-----> > "Andrey Borzenkov"  writes:
>  > >  > Is it possible for readdir to return really empty directory - without
>  > and entry, even "." and ".."?
> 
> Enter empty directory. Remove it by rmdir() by another process. Now you
> have a directory without dot and dotdot.
> 
It is not quite the same.

bor@itsrm2% cd foo
bor@itsrm2% sudo rmdir /tmp/foo
bor@itsrm2% ls -la .
.: No such file or directory

how do I access this? OK I could have opendir on it ... but then,
directory contents is (mur be) still there just like with any
open unlinked file.

OK, not "possible to return" - it was wrong. Is it allowed? :)

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

\
 
 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2008