scp: wrong error message

Harald Koenig H.Koenig at science-computing.de
Tue Aug 4 02:21:41 EST 2009


Hi,

I'm using scp from openssh-5.1p1 on opensuse 11.1.

trying to copy a file to a nonexisting directory with scp gives the wrong error message:

       harald > scp /etc/passwd remote:nodir/
       scp: nodir/: Is a directory

       harald > ssh remote ls -ld nodir 
       ls: cannot access nodir: No such file or directory


IMHO the error message should read e.g. "directory does not exist" and not "is a directory".

Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig at science-computing.de                            ^^^^^       ^^^^^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 




More information about the openssh-unix-dev mailing list