2556c62c37
devel/patch.
17 lines
630 B
Text
17 lines
630 B
Text
$NetBSD: patch-ae,v 1.9 2004/07/24 23:55:28 grant Exp $
|
|
|
|
--- frontends/rnews.c.orig 2004-01-08 09:47:19.000000000 +1100
|
|
+++ frontends/rnews.c
|
|
@@ -822,10 +822,12 @@ int main(int ac, char *av[])
|
|
message_handlers_warn(1, message_log_syslog_err);
|
|
message_handlers_die(1, message_log_syslog_err);
|
|
|
|
+#if !defined(__FreeBSD__) && !defined(__bsdi__) && !defined (__NetBSD__)
|
|
if (setgid(getegid()) < 0)
|
|
die("cannot setgid to %lu", (unsigned long) getegid());
|
|
if (setuid(geteuid()) < 0)
|
|
die("cannot setuid to %lu", (unsigned long) geteuid());
|
|
+#endif
|
|
|
|
if (!innconf_read(NULL))
|
|
exit(1);
|