From: Roman Zippel <zippel@linux-m68k.org>
To: Martin Schaffner <schaffner@gmx.li>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: HFS+ Bug which causes coreutils "make test" to fail
Date: Fri, 19 Nov 2004 21:14:24 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.61.0411192032220.17266@scrub.home> (raw)
In-Reply-To: <76E0E3D3-3A52-11D9-B5E1-0003931E0B62@gmx.li>
Hi,
On Fri, 19 Nov 2004, Martin Schaffner wrote:
> > > mkdir a; chmod 1777 a; touch a/b; su otheruser -c "rm -rf a"
The problem is that rm does a chdir into a/b after unlink fails and tries
to treat it like a directory. It's rather unclear why rm does that.
HFS allows to chdir into a file right now, because it doesn't has enough
information to distinguish it from a lookup (for the resource fork).
OTOH it's easily fixable within rm, lstat clearly says it's a regular
file, so rm has no reason to treat it like a dir.
> > > The other failure related to the fact that all pipe files are suffixed
> > > by "|", and all links by "@" when doing "ls -1F" on HFS+
I don't see what HFS should do different here, ext2 does the same. Can you
send me the strace output to demonstrate the difference?
bye, Roman
prev parent reply other threads:[~2004-11-19 20:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 22:05 HFS+ Bug which causes coreutils "make test" to fail Martin Schaffner
2004-11-18 3:52 ` Andrew Morton
2004-11-19 17:43 ` Martin Schaffner
2004-11-19 20:14 ` Roman Zippel [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=Pine.LNX.4.61.0411192032220.17266@scrub.home \
--to=zippel@linux-m68k.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schaffner@gmx.li \
/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;
as well as URLs for NNTP newsgroup(s).