aboutsummaryrefslogtreecommitdiffstats
path: root/net/mars_nwe
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-01-24 18:03:32 +0800
committerfjoe <fjoe@FreeBSD.org>2003-01-24 18:03:32 +0800
commit21e3e6bc0b99f1c7a2269e2bc6c94fe184d095cf (patch)
tree337724795e1453f891768521c281505d902f94d1 /net/mars_nwe
parent63f44057b56864fba55490f04fc2acafe3d1b74b (diff)
downloadfreebsd-ports-graphics-21e3e6bc0b99f1c7a2269e2bc6c94fe184d095cf.tar.gz
freebsd-ports-graphics-21e3e6bc0b99f1c7a2269e2bc6c94fe184d095cf.tar.zst
freebsd-ports-graphics-21e3e6bc0b99f1c7a2269e2bc6c94fe184d095cf.zip
call set_emu_tli() _after_ logging is initialized
(this fixed core dumps when set_emu_tli() fails for some reason)
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 00000000000..e592a10cc80
--- /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