[Bug 452] New: sftp does not abort when commands given via -b fail

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Dec 6 03:14:20 EST 2002


           Summary: sftp does not abort when commands given via -b fail
           Product: Portable OpenSSH
           Version: older versions
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: spin at avalon.net

The man page states that sftp -b will abort when commands (including get) fail.
 However, when I give sftp a list of get -P commands via the -b option it
continues unconcerned when the requested file doesn't exist and it doesn't exit
with a error code either (which would be enough for me.)

# /usr/bin/sftp -b /tmp/files roger at remote && echo ok
Connecting to remote...
sftp> GET -P /data/200211/njxj1-cdr_2002_11_30__11_00_00.cdr
Couldn't stat remote file: No such file or directory
File "/data/200211/njxj1-cdr_2002_11_30__11_00_00.cdr" not found.
sftp> GET -P /data/200211/cwxj1-cdr_2002_11_26__05_00_00.cdr.bz2
Fetching /data/200211/cwxj1-cdr_2002_11_26__05_00_00.cdr.bz2 to
sftp> GET -P /data/200211/cwxj2-cdr_2002_11_26__05_00_00.cdr.bz2
Fetching /data/200211/cwxj2-cdr_2002_11_26__05_00_00.cdr.bz2 to

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

More information about the openssh-unix-dev mailing list