From: Martin Rode <martin.rode@zeroscale.com>
To: linux-kernel@vger.kernel.org
Subject: cp fails in this symlink case, kernel 2.4.25, reiserfs + ext2
Date: Wed, 07 Apr 2004 19:35:11 +0200 [thread overview]
Message-ID: <1081359310.1212.537.camel@marge.pf-berlin.de> (raw)
Dear developers,
After 10 years with linux I am happy I can report something :-).
I don't know 100% if is a bug, but I think it is.
The example below fails on reiserfs as well as on ext2 for me. I dont
think it should fail, or am I missing something?
Please cc me personally, I am not a subscriber.
Kernel testet: 2.4.[25|19]
Filesystems testet: reiserfs, ext2
Take Care,
Martin
How to reproduce:
-----------------
In any directory try this:
1) mkdir -p alpha/gamma beta
2) (cd alpha; ln -s ../beta .; ln -s gamma latest;)
3) echo "Test" > alpha/gamma/myfile
4) Check
apu:/home/martin/tmp/bug# find -exec file {} \;
.: directory
./alpha: directory
./alpha/gamma: directory
./alpha/gamma/myfile: ASCII text
./alpha/beta: symbolic link to `../beta'
./alpha/latest: symbolic link to `gamma'
./beta: directory
5) cp fails
apu:/home/martin/tmp/bug# (cd alpha/beta; cp ../latest/myfile .)
cp: cannot stat `../latest/myfile': No such file or directory
6) cp ok
apu:/home/martin/tmp/bug# (cd alpha/; cp latest/myfile beta && echo
"ok")
ok
next reply other threads:[~2004-04-07 17:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-07 17:35 Martin Rode [this message]
2004-04-07 19:16 ` Dave Kleikamp
2004-04-08 7:56 ` Martin Rode
2004-04-08 9:24 ` Andreas Schwab
2004-04-10 19:52 ` Andries Brouwer
2004-04-08 21:17 ` Michael Driscoll
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=1081359310.1212.537.camel@marge.pf-berlin.de \
--to=martin.rode@zeroscale.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 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®