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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



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

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux