wrong error message

Scott Neugroschl scott_n at xypro.com
Tue Aug 4 03:16:16 EST 2009


 
> 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".
> 

I suspect that the host is generating EISDIR (cygwin generates that for
a local copy like that).
As such, I wouldn't think it's wise for sshd to put special handling in
there for this case.





More information about the openssh-unix-dev mailing list