[Bug 1252] sftp returns 0 when upload is unsuccessful due to a full device

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Oct 21 08:46:42 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1252

           Summary: sftp returns 0 when upload is unsuccessful due to a full
                    device
           Product: Portable OpenSSH
           Version: 4.2p1
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: jirkat at atlas.cz


when trying to upload a file via sftp and the disk on the server
is full, sftp returns succes (0) although it should return non-zero
code.

repeatable on:
linux 2.6.1x ix86,OpenSSH_4.0p1,OpenSSH_4.2p1

the cause may be the same as in bug 773


$ sftp localhost
Connecting to localhost...
sftp> cd /tmp/full
sftp> put my.img
Uploading my.img to /tmp/pokus/my.img
my.img                                                     0%    0    
0.0KB/s   --:-- ETACouldn't write to remote file "/tmp/full/my.img":
Failure
                                                             
-2147483648% 11449TB  31.1MB/s

$ echo $?
0




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-bugs mailing list