Mailing List Archive

scp: misleading error message "dirname-argument-with-/: Is a directory" when "dirname-argument-with-/" is not an existing directory
Hello,

there are conditions when the scp error messages are misleading:

user@target-host:~/tmp$ scp -p source-host:/tmp/openwrt-dmesg.txt
dirname-argument-with-/
dirname-argument-with-/: Is a directory
user@target-host:~/tmp$ touch dirname-argument-with-
user@target-host:~/tmp$ scp -p source-host:/tmp/openwrt-dmesg.txt
dirname-argument-with-/
dirname-argument-with-/: Is a directory
user@target-host:~/tmp$ ll -d dirname-argument-with-
-rw-rw-r-- 1 user user 0 Nov 6 16:48 dirname-argument-with-
user@target-host:~/tmp$ rm dirname-argument-with-
user@target-host:~/tmp$ mkdir dirname-argument-with-
user@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@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