From: Mike Frysinger <vapier@gentoo.org>
To: libc-ports@sourceware.org
Cc: Roland McGrath <roland@redhat.com>,
linasvepstas@gmail.com, Chris Metcalf <cmetcalf@tilera.com>,
Arnd Bergmann <arnd@arndb.de>,
GLIBC Devel <libc-alpha@sourceware.org>,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] Generic syscalls -- chmod vs. fchmodat
Date: Mon, 24 Jan 2011 16:32:22 -0500 [thread overview]
Message-ID: <201101241632.24425.vapier@gentoo.org> (raw)
In-Reply-To: <20110124210514.AB18918020B@magilla.sf.frob.com>
[-- Attachment #1: Type: Text/Plain, Size: 1064 bytes --]
On Monday, January 24, 2011 16:05:14 Roland McGrath wrote:
> POSIX says "A null pathname shall not be successfully resolved." This
> applies to relative pathnames too, and a file name argument to an *at
> function using AT_FDCWD is a relative pathname. So I think there is no
> situation at all in which the empty string should resolve to anything.
> It's generally in the domain of the kernel to enforce these kinds of rules,
> so I think that having the kernel fail with ENOENT for all empty-string
> cases is the right thing to do.
typically, Linux isnt hard pressed to enforce POSIX semantics. that barrier
is the realm of glibc. the *at functions as implemented by Linux can provide
neat semantics where you can open a directory, process a bunch of files via
that fd, and then turn around and operate on the dir itself with NULL or ""
paths. plus, once Linux has shipped with a syscall behavior set, Linus really
doesnt let people change it. which means it's back on glibc's head to provide
POSIX semantics to application.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2011-01-24 21:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 19:57 Linas Vepstas
2011-01-24 21:05 ` Roland McGrath
2011-01-24 21:32 ` Mike Frysinger [this message]
2011-01-25 14:29 ` Arnd Bergmann
2011-01-25 17:45 ` Roland McGrath
2011-01-25 18:21 ` Arnd Bergmann
2011-01-25 18:34 ` Roland McGrath
2011-01-25 20:04 ` Arnd Bergmann
2011-01-25 18:52 ` Mike Frysinger
2011-01-25 19:56 ` Eric Blake
2011-01-25 20:31 ` Eric Blake
2011-01-25 21:32 ` Eric Blake
2011-01-25 22:10 ` Linas Vepstas
2011-02-10 18:12 ` Andries Brouwer
2011-02-10 18:17 ` Roland McGrath
2011-02-11 9:11 ` 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=201101241632.24425.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=arnd@arndb.de \
--cc=cmetcalf@tilera.com \
--cc=libc-alpha@sourceware.org \
--cc=libc-ports@sourceware.org \
--cc=linasvepstas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
/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
all inboxes | Powered by JetHome®