chiark
/
gitweb
/
~ian
/
authbind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0ab9052
)
Make IPPORT_RESERVED check work (oops!).
debian_version_1_1_3
author
ian
<ian>
Sun, 30 Aug 1998 19:52:38 +0000
(19:52 +0000)
committer
ian
<ian>
Sun, 30 Aug 1998 19:52:38 +0000
(19:52 +0000)
debian/changelog
patch
|
blob
|
history
helper.c
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index 828f79ab3293f9061c3572db0e12b9d6283656d5..0e2152ffb15f9737866573b49f794ed739c457c5 100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,3
+1,9
@@
+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).
authbind (1.1.2) unstable; urgency=low
* Make --deep option actually work (oops).
diff --git
a/helper.c
b/helper.c
index 409ed7bc2744c95abdac8b0aeaaf77e506fc0177..3615d77fa69cc9935dff4c486505895e8760e98f 100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-72,7
+72,8
@@
int main(int argc, const char *const *argv) {
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 (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);
if (chdir(CONFIGDIR)) perrorfail("chdir " CONFIGDIR);
@@
-81,7
+82,6
@@
int main(int argc, const char *const *argv) {
saddr.sin_family= AF_INET;
saddr.sin_port= port;
saddr.sin_addr.s_addr= addr;
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();
snprintf(fnbuf,sizeof(fnbuf)-1,"byport/%u",hport);
if (!access(fnbuf,X_OK)) authorised();