[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110210181221.GA19413@win.tue.nl>
Date: Thu, 10 Feb 2011 19:12:21 +0100
From: Andries Brouwer <aebr@....tue.nl>
To: Roland McGrath <roland@...hat.com>
Cc: Arnd Bergmann <arnd@...db.de>, linasvepstas@...il.com,
Chris Metcalf <cmetcalf@...era.com>,
GLIBC Devel <libc-alpha@...rceware.org>,
linux-kernel@...r.kernel.org, libc-ports@...rceware.org,
linux-api@...r.kernel.org, Mike Frysinger <vapier@...too.org>
Subject: Re: [BUG] Generic syscalls -- chmod vs. fchmodat
On Tue, Jan 25, 2011 at 09:45:15AM -0800, Roland McGrath wrote:
> the empty string has never been a valid relative pathname.
Hmm. I definitely recall otherwise.
The old Unix definition is that the empty string stands for "."
so that 'ls ""' means the same as 'ls .'
and 'ls /tmp/""' the same as 'ls /tmp/.'.
Let me try.
On a recent Linux system:
% ls -l ""
ls: cannot access : No such file or directory
On an old Unix system:
# ls -l ""
drwxr-xr-x 2 bin 1040 Jan 1 1970 bin
drwxr-xr-x 2 bin 352 Jan 1 1970 dev
drwxr-xr-x 2 bin 304 Aug 20 12:39 etc
...
Andries
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists