public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: "\"Nikita Danilov\" " <Nikita@Namesys.COM>, linux-kernel@vger.kernel.org
Subject: Re: Are "," and ".." in directory required?
Date: Thu, 10 Jul 2003 14:41:45 +0400	[thread overview]
Message-ID: <20030710104145.GA2858@namesys.com> (raw)
In-Reply-To: <E19aYWH-00075R-00.arvidjaar-mail-ru@f25.mail.ru>

Hello!

On Thu, Jul 10, 2003 at 02:19:21PM +0400, "Andrey Borzenkov"  wrote:
> > 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

Well, this sequence of events is wrong.
You need to open it first, then remove it, and then do readdir (you still have filehandle to it).

Bye,
    Oleg

  parent reply	other threads:[~2003-07-10 10:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-10  8:16 Are "," and ".." in directory required? "Andrey Borzenkov" 
2003-07-10 10:01 ` Nikita Danilov
2003-07-10 10:19   ` Re[2]: " "Andrey Borzenkov" 
2003-07-10 10:37     ` Nikita Danilov
2003-07-10 11:47       ` "Andrey Borzenkov" 
2003-07-10 10:41     ` Oleg Drokin [this message]
2003-07-10 12:01       ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030710104145.GA2858@namesys.com \
    --to=green@namesys.com \
    --cc=Nikita@Namesys.COM \
    --cc=arvidjaar@mail.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox