Bug 932

Summary: print the status code with the error message
Product: Portable OpenSSH Reporter: Vincent Fiack <vincent.fiack>
Component: sftpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement    
Priority: P2    
Version: -current   
Hardware: All   
OS: All   

Description Vincent Fiack 2004-09-21 01:04:45 AEST
in order to script a few actions with sftp (client), we need to check if some
operation worked or not, ...

in sftp-common.c, you have a function named fx2txt which converts the status
code to a user-friendly message.

Could you append the error code to these messages ?
Thanks !
Comment 1 Damien Miller 2004-12-06 17:28:23 AEDT
No, for the same reason that "ls /nonexistent" doesn't say "ls: /nonexistent: No
such file or directory[2]" - it doesn't help normal users.

Just use a regex to parse the messages - the error message names have been
perfectly stable since 2001 :)
Comment 2 Darren Tucker 2006-10-07 11:37:12 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.