openbsd-ports/comms/hylafax/patches/patch-ae
1998-09-04 00:35:54 +00:00

26 lines
608 B
Plaintext

--- faxd/UUCPLock.c++.orig Wed Sep 2 13:07:27 1998
+++ faxd/UUCPLock.c++ Wed Sep 2 13:09:17 1998
@@ -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("dialer");
+ if (!grp)
+ faxApp::fatal("Can not deduce identity of DIALER");
+ UUCPgid = grp->gr_gid;
+ endgrent(); // paranoia
}
}
uid_t UUCPLock::getUUCPUid() { setupIDs(); return UUCPuid; }