summaryrefslogtreecommitdiff
path: root/comms/hylafax/patches/patch-an
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2000-08-29 17:08:37 +0000
committerabs <abs@pkgsrc.org>2000-08-29 17:08:37 +0000
commitbd160f1b2c214da3ee739599619c40ed1e0a8e20 (patch)
treed72ad9368fe9372bc18b83461cabddd406c4f26e /comms/hylafax/patches/patch-an
parent8f5bdddc6c287fcf2ea8492dca041149ae4b0811 (diff)
downloadpkgsrc-bd160f1b2c214da3ee739599619c40ed1e0a8e20.tar.gz
Patch faxd/tif_fax3.h to avoid potential infinite loop in EXPAND1D and EXPAND2D
This package still has bizarre issues with trying to symlink everything across from /var/spool/fax into /usr/pkg/..., which breaks probably due to judicious use of chroot(). That _really_ needs to be fixed
Diffstat (limited to 'comms/hylafax/patches/patch-an')
-rw-r--r--comms/hylafax/patches/patch-an50
1 files changed, 30 insertions, 20 deletions
diff --git a/comms/hylafax/patches/patch-an b/comms/hylafax/patches/patch-an
index 9287a7bf6f0..d9c920bedb4 100644
--- a/comms/hylafax/patches/patch-an
+++ b/comms/hylafax/patches/patch-an
@@ -1,21 +1,31 @@
-$NetBSD: patch-an,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $
+$NetBSD: patch-an,v 1.2 2000/08/29 17:08:38 abs Exp $
---- defs.in.orig Mon Jan 4 10:17:09 1999
-+++ defs.in Tue Aug 10 18:10:07 1999
-@@ -44,6 +44,7 @@
- # to insufficient; you are better off rerunning the
- # configure script so that all uses are set correctly.
- #
-+PREFIX = @PREFIX@
- SPOOL = @SPOOL@
- SBIN = @SBIN@
- BIN = @BIN@
-@@ -255,7 +256,7 @@
- LDOPTS = ${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
- LDLIBS = ${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
-
--GLDOPTS = -L/usr/local/lib
-+GLDOPTS = -L${PREFIX}/lib
- GLDLIBS = ${SHDLIBC}
-
- #
+--- hfaxd/User.c++.orig Sun Jun 13 08:41:16 1999
++++ hfaxd/User.c++
+@@ -218,7 +218,7 @@
+ if (id == uid) // user currently logged in
+ return (const char*) the_user;
+ if (id == FAXUID_ANON) // anonymous user
+- return "fax";
++ return FAX_USER;
+ if (idcache == NULL) // load cache from file
+ fillIDCache();
+ const fxStr* hit = idcache->find(id); // check cache
+@@ -237,7 +237,7 @@
+ {
+ if (name == the_user)
+ id = uid;
+- else if (strcmp(name, "fax") == 0)
++ else if (strcmp(name, FAX_USER) == 0)
+ id = FAXUID_ANON;
+ else {
+ if (idcache == NULL)
+@@ -324,7 +324,7 @@
+ if (faxuid < FAXUID_MAX)
+ SetBit(FAXUID_RESV); // reserved uid
+ else
+- logError("Internal error, \"fax\" UID (%u) too large.", faxuid);
++ logError("Internal error, \"" FAX_USER "\" UID (%u) too large.", faxuid);
+ SetBit(FAXUID_ANON); // anonymous uid is reserved
+ while (nextRecord(db, line, sizeof (line))) {
+ if (line[0] == '!')