f55cd5a402
based on 4.1.3 update from Steve Shockley <steve.shockley@shockley.net> prompted by Bert Koelewijn <bert@schmidt-koelewijn.nl> ok espie@ "no actual risk you'll break it more"
26 lines
628 B
Plaintext
26 lines
628 B
Plaintext
--- faxd/UUCPLock.c++.orig Thu Sep 21 05:24:54 2000
|
|
+++ faxd/UUCPLock.c++ Wed Jul 31 12:40:10 2002
|
|
@@ -37,6 +37,7 @@ extern "C" {
|
|
}
|
|
#endif
|
|
#include <pwd.h>
|
|
+#include <grp.h>
|
|
|
|
/*
|
|
* UUCP Device Locking Support.
|
|
@@ -143,10 +144,13 @@ UUCPLock::setupIDs()
|
|
{
|
|
if (UUCPuid == (uid_t) -1) {
|
|
const passwd *pwd = getpwnam("uucp");
|
|
+ const group *grp = getgrnam("dialer");
|
|
if (!pwd)
|
|
faxApp::fatal("Can not deduce identity of UUCP");
|
|
+ if (!grp)
|
|
+ faxApp::fatal("Can not deduce identity of DIALER");
|
|
UUCPuid = pwd->pw_uid;
|
|
- UUCPgid = pwd->pw_gid;
|
|
+ UUCPgid = grp->gr_gid;
|
|
endpwent(); // paranoia
|
|
}
|
|
}
|