+authbind (1.1.3) unstable; urgency=low
+
+ * Make IPPORT_RESERVED check work (oops!).
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk> Sun, 30 Aug 1998 20:52:10 +0100
+
authbind (1.1.2) unstable; urgency=low
* Make --deep option actually work (oops).
if (argc != 3) badusage();
addr= strtoul(argv[1],&ep,16); if (*ep || addr&~0x0ffffffffUL) badusage();
port= strtoul(argv[2],&ep,16); if (*ep || port&~0x0ffffUL) badusage();
- if (port >= IPPORT_RESERVED/2) _exit(EPERM);
+ hport= htons(port);
+ if (hport >= IPPORT_RESERVED/2) _exit(EPERM);
if (chdir(CONFIGDIR)) perrorfail("chdir " CONFIGDIR);
saddr.sin_family= AF_INET;
saddr.sin_port= port;
saddr.sin_addr.s_addr= addr;
- hport= htons(port);
snprintf(fnbuf,sizeof(fnbuf)-1,"byport/%u",hport);
if (!access(fnbuf,X_OK)) authorised();