summaryrefslogtreecommitdiff
path: root/comms/hylafax/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'comms/hylafax/patches/patch-ac')
-rw-r--r--comms/hylafax/patches/patch-ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/comms/hylafax/patches/patch-ac b/comms/hylafax/patches/patch-ac
new file mode 100644
index 00000000000..12b0fe0a55f
--- /dev/null
+++ b/comms/hylafax/patches/patch-ac
@@ -0,0 +1,27 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $
+
+--- faxd/UUCPLock.c++.orig Sat Feb 14 11:49:38 1998
++++ faxd/UUCPLock.c++ Mon Apr 12 17:53:07 1999
+@@ -37,6 +37,7 @@
+ }
+ #endif
+ #include <pwd.h>
++#include <grp.h>
+
+ /*
+ * UUCP Device Locking Support.
+@@ -146,8 +147,13 @@
+ if (!pwd)
+ faxApp::fatal("Can not deduce identity of UUCP");
+ UUCPuid = pwd->pw_uid;
+- UUCPgid = pwd->pw_gid;
+ endpwent(); // paranoia
++
++ const group *grp = getgrnam(FAX_GROUP);
++ if (!grp)
++ faxApp::fatal("Can not deduce group identity of '" FAX_GROUP "'");
++ UUCPgid = grp->gr_gid;
++ endgrent(); // paranoia
+ }
+ }
+ uid_t UUCPLock::getUUCPUid() { setupIDs(); return UUCPuid; }