Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 822137

Summary: sftp returns 0 if batch operation failed
Product: Red Hat Enterprise Linux 6 Reporter: Miroslav Vadkerti <mvadkert>
Component: opensshAssignee: Petr Lautrbach <plautrba>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 6.3CC: pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-09 15:49:39 UTC Type: Bug
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: 836160    
Attachments:
Description Flags
Reproducer none

Description Miroslav Vadkerti 2012-05-16 12:59:23 UTC
Description of problem:
sftp returns 0 if batch operation failed, because of full disk. 

Version-Release number of selected component (if applicable):
openssh-5.3p1-81.el6

How reproducible:
100%

Steps to Reproduce:
1. Download and lunch provided reproducer
  
Actual results:
SFTP returns 0

Expected results:
SFTP returns 0

Additional info:
This is a regression from RHEL5, though not a regression from RHEL6 (it has been there always we just did not catch it because of bad Makefile in Beaker tests)

Comment 1 Miroslav Vadkerti 2012-05-16 12:59:49 UTC
Created attachment 584956 [details]
Reproducer

Comment 2 RHEL Program Management 2012-07-10 08:12:58 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 01:45:37 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 5 Petr Lautrbach 2012-10-09 14:34:25 UTC
I'm unable to reproduce it:

# df -h
/tmp/bz247802.img      57K   57K     0 100% /mnt/bz247802

# sftp -b /tmp/bz247802.batch localhost
sftp> put /tmp/bz247802.1 /mnt/bz247802
Uploading /tmp/bz247802.1 to /mnt/bz247802/bz247802.1
Couldn't write to remote file "/mnt/bz247802/bz247802.1": Failure

# echo $?
1

Comment 6 Miroslav Vadkerti 2012-10-09 16:13:54 UTC
Very odd but I was unable to reproduce this bug with the provided test on all architectures on RHEL6. Closed as not a bug.