Subject: Re: bug#22584: cp could be more precise than "Not a directory"

From: Assaf Gordon <[email-masked]>
Date: Tue, 9 Feb 2016 20:15:35 -0500

> On Feb 9, 2016, at 02:29, Bernhard Voelker <[email-masked]> 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