$NetBSD: patch-ao,v 1.8 2014/03/14 15:59:29 adam Exp $ --- hfaxd/User.c++.orig 2012-06-06 00:58:38.000000000 +0000 +++ hfaxd/User.c++ @@ -260,7 +260,7 @@ HylaFAXServer::userName(u_int id) if (id == uid) // user currently logged in return (const char*) the_user; if (id == FAXUID_ANON) // anonymous user - return "fax"; + return FAX_USER; if (idcache == NULL) // load cache from file fillIDCache(); const fxStr* hit = idcache->find(id); // check cache @@ -279,7 +279,7 @@ HylaFAXServer::userID(const char* name, { if (name == the_user) id = uid; - else if (strcmp(name, "fax") == 0) + else if (strcmp(name, FAX_USER) == 0) id = FAXUID_ANON; else { if (idcache == NULL) @@ -366,7 +366,7 @@ HylaFAXServer::findUser(FILE* db, const if (faxuid < FAXUID_MAX) SetBit(faxuid); // reserved uid else - logError("Internal error, \"fax\" UID (%u) too large.", faxuid); + logError("Internal error, \"" FAX_USER "\" UID (%u) too large.", faxuid); SetBit(0); // 0 uid is reserved SetBit(FAXUID_ANON); // anonymous uid is reserved while (nextRecord(db, line, sizeof (line))) {