- Fix strerror() in bsd-misc.c
This commit is contained in:
parent
4870afd7c7
commit
46e55aaabc
|
@ -6,6 +6,7 @@
|
||||||
- djm@cvs.openbsd.org 2001/03/13 22:42:54
|
- djm@cvs.openbsd.org 2001/03/13 22:42:54
|
||||||
[sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c]
|
[sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c]
|
||||||
sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@
|
sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@
|
||||||
|
- Fix strerror() in bsd-misc.c
|
||||||
|
|
||||||
20010313
|
20010313
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
|
@ -4540,4 +4541,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.953 2001/03/13 23:27:09 djm Exp $
|
$Id: ChangeLog,v 1.954 2001/03/13 23:38:20 mouring Exp $
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
|
|
||||||
RCSID("$Id: bsd-misc.c,v 1.2 2001/02/09 01:55:36 djm Exp $");
|
RCSID("$Id: bsd-misc.c,v 1.3 2001/03/13 23:38:20 mouring Exp $");
|
||||||
|
|
||||||
char *get_progname(char *argv0)
|
char *get_progname(char *argv0)
|
||||||
{
|
{
|
||||||
|
@ -76,10 +76,10 @@ const char *strerror(int e)
|
||||||
extern int sys_nerr;
|
extern int sys_nerr;
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
|
|
||||||
if ((e >= 0) || (e < sys_nerr))
|
if ((e >= 0) && (e < sys_nerr))
|
||||||
return("unlisted error");
|
|
||||||
else
|
|
||||||
return(sys_errlist[e]);
|
return(sys_errlist[e]);
|
||||||
|
else
|
||||||
|
return("unlisted error");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue