commit - cdaaae0cb2c2b30db8bb61506a826ff87c58f7c8
commit + e0da56fc7b1dae4e21dfda7e0ac8ad7594135986
blob - 50d91ce8e2dbff20c87e9dc54505e0bac3406019
blob + f016b6aa88e9a4a4de167d78e02dea523c51e32b
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
/* Create new stdin(0), stdout(1) and stderr(2) descriptors */
dup2( fd, 0 ); dup2( fd, 1 ); dup2( fd, 2 );
} /* Setup_FDStreams */
+
+#if !defined(SINGLE_USER_OS)
/**
* Get user and group ID of unprivileged "nobody" user.
return true;
} /* NGIRCd_getNobodyID */
+
+#endif
static bool
}
}
+#if !defined(SINGLE_USER_OS)
/* Check user ID */
if (Conf_UID == 0) {
pwd = getpwuid(0);
goto out;
}
}
+#endif
/* Change user ID */
if (getuid() != Conf_UID) {
blob - 1c6e3f852aaa02c5b4cbb398803ba9c114ec35b4
blob + 208d3500342a1d2aba40b07a7eee0af9a4ec98c3
--- src/portab/portab.h
+++ src/portab/portab.h
/* SPLint */
-
#ifdef S_SPLINT_S
#include "splint.h"
#endif
#define HOST_VENDOR "unknown"
#endif
+#ifdef __HAIKU__
+#define SINGLE_USER_OS
+#endif
/* configure options */