aboutsummaryrefslogtreecommitdiff
path: root/net/mars_nwe
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-01-24 10:03:32 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-01-24 10:03:32 +0000
commite2ba203aa644a7ec63d6431162d567dcc2a130d4 (patch)
tree019f6ea1f022901bf8ce84b98038f1c6a84b7d5b /net/mars_nwe
parent3403a41f9f4d113226b5c89f16fe590b3a94e820 (diff)
downloadports-e2ba203aa644a7ec63d6431162d567dcc2a130d4.tar.gz
ports-e2ba203aa644a7ec63d6431162d567dcc2a130d4.zip
call set_emu_tli() _after_ logging is initialized
(this fixed core dumps when set_emu_tli() fails for some reason)
Notes
Notes: svn path=/head/; revision=73935
Diffstat (limited to 'net/mars_nwe')
-rw-r--r--net/mars_nwe/files/patch-nwserv.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/mars_nwe/files/patch-nwserv.c b/net/mars_nwe/files/patch-nwserv.c
new file mode 100644
index 000000000000..e592a10cc807
--- /dev/null
+++ b/net/mars_nwe/files/patch-nwserv.c
@@ -0,0 +1,22 @@
+--- nwserv.c.orig Thu Jan 23 23:54:21 2003
++++ nwserv.c Thu Jan 23 23:54:55 2003
+@@ -1269,9 +1269,6 @@
+ fprintf(stderr, "You must have root permission !\n");
+ exit(1);
+ }
+-#ifdef FREEBSD
+- set_emu_tli();
+-#endif
+ tzset();
+ while (++j < argc) {
+ char *a=argv[j];
+@@ -1341,6 +1338,9 @@
+ #endif
+ setgroups(0, NULL);
+ init_tools(IN_PROG, init_mode);
++#ifdef FREEBSD
++ set_emu_tli();
++#endif
+ set_sigs(0);
+ get_ini(1);
+ #if !IN_NWROUTED