All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Oleg Drokin <green@namesys.com>
Cc: Andrey Borzenkov <arvidjaar@mail.ru>,
	"\"Nikita Danilov\" " <Nikita@Namesys.COM>,
	linux-kernel@vger.kernel.org
Subject: Re: Are "," and ".." in directory required?
Date: Thu, 10 Jul 2003 14:01:55 +0200	[thread overview]
Message-ID: <je65maio98.fsf@sykes.suse.de> (raw)
In-Reply-To: <20030710104145.GA2858@namesys.com> (Oleg Drokin's message of "Thu, 10 Jul 2003 14:41:45 +0400")

Oleg Drokin <green@namesys.com> writes:

|> 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

No need for sudo.

|> > 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).

The filehandle is implicit (by being a cwd).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

      reply	other threads:[~2003-07-10 11:47 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
2003-07-10 12:01       ` Andreas Schwab [this message]

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=je65maio98.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=Nikita@Namesys.COM \
    --cc=arvidjaar@mail.ru \
    --cc=green@namesys.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.