Message329761
Using `cp` on Debian Buster I'm having a better error message:
$ touch foo
$ cp foo bar/
cp: failed to access 'bar/': Not a directory
From copy.c (from Debian coreutils):
/* Improve quality of diagnostic when a nonexistent dst_name
ends in a slash and open fails with errno == EISDIR. */
if (dest_desc < 0 && dest_errno == EISDIR
&& *dst_name && dst_name[strlen (dst_name) - 1] == '/')
dest_errno = ENOTDIR; |
|
Date |
User |
Action |
Args |
2018-11-12 21:51:08 | mdk | set | recipients:
+ mdk, vstinner, serhiy.storchaka, matrixise, xtreak, cedricvanrompay |
2018-11-12 21:51:08 | mdk | set | messageid: <1542059468.41.0.788709270274.issue35216@psf.upfronthosting.co.za> |
2018-11-12 21:51:08 | mdk | link | issue35216 messages |
2018-11-12 21:51:08 | mdk | create | |
|