pkgsrc/comms/hylafax/patches/patch-am
abs e4f6d72d71 Update hylfax to 4.1.7. Changes since 4.1.5:
* added new edit-faxcover script
    * added various enhancements to faxsetup
    * default libtiff v3.6 compatibility
    * added NOTIFY_FAXMASTER and ENCODING parameters for FaxDispatch
    * added 2D-MMR support for Class 2 modems that support it
    * added RingTimeout, ModemRingResponse, CIDNumberAnswerLength, and
      CIDNameAnswerLength modem config parameters
    * support for MultiTech MT5634ZDXb and MT5634ZBA-DID
    * added subaddressing specification capability to sendfax
    * numerous bugfixes (several significant) and build cleanups
    * fixes the PageChop feature that broken in 4.1.6

Also fixed some cosmetic NetBSD issues with faxadmodem
2003-09-23 21:39:46 +00:00

27 lines
688 B
Text

$NetBSD: patch-am,v 1.5 2003/09/23 21:39:48 abs Exp $
--- faxd/UUCPLock.c++.orig Thu Sep 21 10:24:54 2000
+++ faxd/UUCPLock.c++
@@ -37,6 +37,7 @@ extern "C" {
}
#endif
#include <pwd.h>
+#include <grp.h>
/*
* UUCP Device Locking Support.
@@ -146,8 +147,13 @@ UUCPLock::setupIDs()
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; }