GNU bug report logs - #22584
cp could be more precise than "Not a directory"

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 7 Feb 2016 16:20:01 UTC

Severity: wishlist

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: 22584 <at> debbugs.gnu.org, 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: bug#22584: cp could be more precise than "Not a directory"
Date: Tue, 9 Feb 2016 20:15:35 -0500
> On Feb 9, 2016, at 02:29, Bernhard Voelker <mail <at> bernhard-voelker.de> wrote:
[...]
> 
> After stat() has detected that the target does not exist, cp simply
> tries to open() it - and while it has a trailing slash, the kernel
> returns EISDIR:

Thank you, Bernhard, for pointing the additional open/EISDIR - I missed that part.
That better explains the code in src/copy.c:1150 . 

-assaf





This bug report was last modified 6 years and 214 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.