bugzilla-daemon at mindrot.org
2002-Jul-24 18:05 UTC
[Bug 369] New: Inconsistant exiit status from scp
http://bugzilla.mindrot.org/show_bug.cgi?id=369
Summary: Inconsistant exiit status from scp
Product: Portable OpenSSH
Version: 3.0.2p1
Platform: ix86
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: scp
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: oberman at es.net
Teh man page states that scp returns 0 for success and >0 for failure. This
is
non-standard.
Worse, it may return 0 after a failure.
scp -B bogus at system:file1 file1
If authentication fails, the string "Permision denied" is sent to
STDERR, but
the status is 0, making this indistinguishable from success without an extra
check of
the test sent to STDERR.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
