Bug in bsd-misc.c
wwieser at gmx.de
wwieser at gmx.de
Wed Mar 14 04:13:30 EST 2001
> > #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) &&
> > defined(HAVE_SYS_NERR)
> > const char *strerror(int e)
> > {
> > extern int sys_nerr;
> > extern char *sys_errlist[];
> >
> > if ((e >= 0) || (e < sys_nerr))
> > return("unlisted error");
> > else
> > return(sys_errlist[e]);
> > }
> > #endif
> >
> Should the "||" be changed to "&&" as well?
>
Err... only if you want it to be bug-free :)
> However, I'm interested in how you ran across this with Linux since Linux
> has a built in strerror(). =)
>
Wanted to check out incompabilities and functions missing on different
platforms.
wwieser
More information about the openssh-unix-dev
mailing list