Bug 190147

Summary: scp exiting non-zero on success
Product: Red Hat Enterprise Linux 4 Reporter: jjh-redhat-bugzilla
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: redhatbugs, tao
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0303 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:20:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
Output from openssh-3.9p1-8.RHEL4.9
none
output from openssh-3.9p1-8.RHEL4.12
none
test case script none

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