#include <sys/wait.h>
#include <netinet/in.h>
-static const char *rcsid="$Id$";
-
#include "authbind.h"
typedef void anyfn_type(void);
goto bail;
}
- if (!geteuid() || portval == 0 || portval >= IPPORT_RESERVED) {
+ if (!geteuid() || portval == 0 || ntohs(portval) >= IPPORT_RESERVED) {
bail:
return old_bind(fd,addr,addrlen);
}
execl(HELPER,HELPER,addrarg,portarg,afarg,(char*)0);
status= errno > 0 && errno < 127 ? errno : 127;
STDERRSTR_CONST("libauthbind: possible installation problem - "
- "could not invoke " HELPER " (");
- STDERRSTR_STRING(rcsid);
- STDERRSTR_CONST(")\n");
+ "could not invoke " HELPER "\n");
exiterrno(status);
}