scp: misleading error message "dirname-argument-with-/: Is a directory" when "dirname-argument-with-/" is not an existing directory
Mark Dominik Bürkle
dominik.buerkle at web.de
Sun Nov 7 03:05:52 AEDT 2021
Hello,
there are conditions when the scp error messages are misleading:
user at target-host:~/tmp$ scp -p source-host:/tmp/openwrt-dmesg.txt
dirname-argument-with-/
dirname-argument-with-/: Is a directory
user at target-host:~/tmp$ touch dirname-argument-with-
user at target-host:~/tmp$ scp -p source-host:/tmp/openwrt-dmesg.txt
dirname-argument-with-/
dirname-argument-with-/: Is a directory
user at target-host:~/tmp$ ll -d dirname-argument-with-
-rw-rw-r-- 1 user user 0 Nov 6 16:48 dirname-argument-with-
user at target-host:~/tmp$ rm dirname-argument-with-
user at target-host:~/tmp$ mkdir dirname-argument-with-
user at target-host:~/tmp$ scp -p source-host:/tmp/openwrt-dmesg.txt
dirname-argument-with-/
openwrt-dmesg.txt 100% 14KB 3.0MB/s 00:00
user at target-host:~/tmp$
sorry if duplicate, ATM there is no search on the listinfo page, I only
get an empty page from
http://marc.theaimsgroup.com/?l=openssh-unix-dev&r=1&w=2 and I'm too
lazy to fetch / extract / check the .txt.gz files from
https://lists.mindrot.org/pipermail/openssh-unix-dev/
I hope thats ok with you.
Kind regards,
mdbuerkle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20211106/4bc7c5d8/attachment.asc>
More information about the openssh-unix-dev
mailing list