openbsd-ports/net/ngircd/patches/patch-src_ngircd_ngircd_c
jasper 7ebef1c6f3 - update to ngircd-22
ok aja@, fgsch@ (MAINTAINER)
2014-12-03 10:32:18 +00:00

36 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_ngircd_ngircd_c,v 1.4 2014/12/03 10:32:18 jasper Exp $
--- src/ngircd/ngircd.c.orig Mon Jul 14 13:26:07 2014
+++ src/ngircd/ngircd.c Tue Dec 2 20:05:31 2014
@@ -563,7 +563,7 @@ Setup_FDStreams(int fd)
#if !defined(SINGLE_USER_OS)
/**
- * Get user and group ID of unprivileged "nobody" user.
+ * Get user and group ID of unprivileged "_ngircd" user.
*
* @param uid User ID
* @param gid Group ID
@@ -587,7 +587,7 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
}
#endif
- pwd = getpwnam("nobody");
+ pwd = getpwnam("_ngircd");
if (!pwd)
return false;
@@ -703,11 +703,11 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
if (Conf_UID == 0) {
pwd = getpwuid(0);
Log(LOG_INFO,
- "ServerUID must not be %s(0), using \"nobody\" instead.",
+ "ServerUID must not be %s(0), using \"_ngircd\" instead.",
pwd ? pwd->pw_name : "?");
if (!NGIRCd_getNobodyID(&Conf_UID, &Conf_GID)) {
Log(LOG_WARNING,
- "Could not get user/group ID of user \"nobody\": %s",
+ "Could not get user/group ID of user \"_ngircd\": %s",
errno ? strerror(errno) : "not found" );
goto out;
}