Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264161AbUDGTQZ (ORCPT ); Wed, 7 Apr 2004 15:16:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264162AbUDGTQY (ORCPT ); Wed, 7 Apr 2004 15:16:24 -0400 Received: from e31.co.us.ibm.com ([32.97.110.129]:1785 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S264161AbUDGTQX (ORCPT ); Wed, 7 Apr 2004 15:16:23 -0400 Subject: Re: cp fails in this symlink case, kernel 2.4.25, reiserfs + ext2 From: Dave Kleikamp To: Martin Rode Cc: linux-kernel In-Reply-To: <1081359310.1212.537.camel@marge.pf-berlin.de> References: <1081359310.1212.537.camel@marge.pf-berlin.de> Content-Type: text/plain Message-Id: <1081365374.11164.24.camel@shaggy.austin.ibm.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 07 Apr 2004 14:16:15 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 18 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. -- David Kleikamp IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/