bugzilla-daemon at mindrot.org
2002-Dec-05 16:14 UTC
[Bug 452] New: sftp does not abort when commands given via -b fail
http://bugzilla.mindrot.org/show_bug.cgi?id=452 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 cwxj1-cdr_2002_11_26__05_00_00.cdr.bz2 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 cwxj2-cdr_2002_11_26__05_00_00.cdr.bz2 sftp> ok ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.