[Bug 527682] New: scp: wrong error message
http://bugzilla.novell.com/show_bug.cgi?id=527682 Summary: scp: wrong error message Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- 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 the error message should read e.g. "directory does not exist" and not "is a directory". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=527682
User koenig@linux.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=527682#c1
--- Comment #1 from Harald Koenig
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.
indeed, you're right: harald > cp /etc/passwd foo/ cp: cannot create regular file `foo/': Is a directory harald > strace -e open cp /etc/passwd foo/ [...] open("/etc/passwd", O_RDONLY) = 3 open("foo/", O_WRONLY|O_CREAT|O_EXCL, 0644) = -1 EISDIR (Is a directory) cp: cannot create regular file `foo/': Is a directory :-( still I find the EISDIR quite confusing in this case... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=527682
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=527682
Anna Bernathova
http://bugzilla.novell.com/show_bug.cgi?id=527682
User anicka@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527682#c2
Anna Bernathova
http://bugzilla.novell.com/show_bug.cgi?id=527682
User pbaudis@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527682#c3
Petr Baudis
http://bugzilla.novell.com/show_bug.cgi?id=527682
User anicka@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527682#c4
Anna Bernathova
participants (1)
-
bugzilla_noreply@novell.com