Re: cp fails in this symlink case, kernel 2.4.25, reiserfs + ext2

From: Andreas Schwab
Date: Thu Apr 08 2004 - 04:25:14 EST


Martin Rode <martin.rode@xxxxxxxxxxxxx> writes:

> On Wed, 2004-04-07 at 21:16, Dave Kleikamp wrote:
>> On Wed, 2004-04-07 at 12:35, Martin Rode wrote:
>> > 5) cp fails
>> > apu:/home/martin/tmp/bug# (cd alpha/beta; cp ../latest/myfile .)
>> > cp: cannot stat `../latest/myfile': No such file or directory
>>
>> When you cd to alpha/beta, your current directory is really
>> .../tmp/bug/beta. Your shell may remember that you got there through
>> the symlink in alpha, but cp will follow .., which is really bug.
>
> Bug in "cp", "bash" or in the kernel fs-layer?

Neither.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/