Bug 190147 - scp exiting non-zero on success
Summary: scp exiting non-zero on success
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: openssh
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tomas Mraz
QA Contact: Brian Brock
URL:
Whiteboard:
: 190757 197750 (view as bug list)
Depends On:
Blocks: 181409
TreeView+ depends on / blocked
 
Reported: 2006-04-28 05:47 UTC by jjh-redhat-bugzilla
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0303
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:20:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output from openssh-3.9p1-8.RHEL4.9 (298 bytes, text/plain)
2006-04-28 05:47 UTC, jjh-redhat-bugzilla
no flags Details
output from openssh-3.9p1-8.RHEL4.12 (299 bytes, text/plain)
2006-04-28 05:48 UTC, jjh-redhat-bugzilla
no flags Details
test case script (503 bytes, text/plain)
2006-04-28 05:50 UTC, jjh-redhat-bugzilla
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0303 0 normal SHIPPED_LIVE openssh bug fix update 2006-08-09 04:00:00 UTC

Description jjh-redhat-bugzilla 2006-04-28 05:47:07 UTC
Description of problem:

With the latestup update to openssh, when doing an 'scp user@host:/path/to/src
file user@host:/path/to/destination' style scp command, it exits 1 instead of 0
on success.  

with -vvv option it shows:

debug1: Exit status 0
but echo $? => 1

Version-Release number of selected component (if applicable):

openssh-3.9p1-8.RHEL4.12

How reproducible:

Every time.  Test case script attached.

Steps to Reproduce:

    Use attached script.
  
Actual results:

    $ scp user@localhost:/tmp/junk.dat user@localhost:/tmp/junk.dat.copy
    $ echo $?
    1

Expected results:
    $ scp user@localhost:/tmp/junk.dat user@localhost:/tmp/junk.dat.copy
    $ echo $?
    0

Additional info:

Comment 1 jjh-redhat-bugzilla 2006-04-28 05:47:08 UTC
Created attachment 128341 [details]
Output from openssh-3.9p1-8.RHEL4.9

Comment 2 jjh-redhat-bugzilla 2006-04-28 05:48:22 UTC
Created attachment 128342 [details]
output from openssh-3.9p1-8.RHEL4.12

Comment 3 jjh-redhat-bugzilla 2006-04-28 05:50:07 UTC
Created attachment 128343 [details]
test case script

Comment 7 Tomas Mraz 2006-05-04 22:47:39 UTC
*** Bug 190757 has been marked as a duplicate of this bug. ***

Comment 8 Tomas Mraz 2006-07-07 12:21:18 UTC
*** Bug 197750 has been marked as a duplicate of this bug. ***

Comment 11 Red Hat Bugzilla 2006-08-10 21:20:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0303.html



Note You need to log in before you can comment on or make changes to this bug.