$NetBSD: patch-ak,v 1.3 2000/08/30 09:50:46 abs Exp $ --- faxd/UUCPLock.c++.orig Sun Jun 13 08:41:05 1999 +++ faxd/UUCPLock.c++ @@ -37,6 +37,7 @@ } #endif #include +#include /* * 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; }