Bug 247802
Summary: | sftp problem while transferring files to a partition which is 100% full | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Som <smudaraddi> | ||||||
Component: | openssh | Assignee: | Tomas Mraz <tmraz> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 4.4 | CC: | jplans, tao | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHSA-2007-0703 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-11-15 14:58:19 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: | |||||||||
Attachments: |
|
Description
Som
2007-07-11 14:50:47 UTC
This is fixed in openssh-4.5p1. On the other hand it will also bail out when copying files of zero size which is not 100% correct either. It is also fixed in RHEL-5 openssh. If you request it being fixed in RHEL-4 use your support options http://www.redhat.com/support to report this bug and mention this bug report number. Created attachment 160805 [details]
Proposed patch
This patch implements checks when no write to a file succeeded -> we then
unlink the file.
Comment on attachment 160805 [details]
Proposed patch
After discussion with mitr - this patch is definitely a bad idea - 1. changes
protocol behavior 2. sftp can write to special files - we mustn't unlink them!
Note - we could and should fix the exit status of sftp in batch mode as in: https://bugzilla.mindrot.org/show_bug.cgi?id=1252 Created attachment 160853 [details]
Proposed patch for sftp client
This patch fixes the inconsistency in sftp client behavior - with it sftp
always returns exit status 1 in batch mode when the write was not completely
successful.
Note that abort in batch mode is per command so when you transfer multiple files using wildcard match it will not abort before all the matching files are transfered even if some individual transfer fails. 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/RHSA-2007-0703.html |