summaryrefslogtreecommitdiff
path: root/net/rinetd/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'net/rinetd/patches/patch-ab')
-rw-r--r--net/rinetd/patches/patch-ab30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/rinetd/patches/patch-ab b/net/rinetd/patches/patch-ab
new file mode 100644
index 00000000000..84ca2cd235f
--- /dev/null
+++ b/net/rinetd/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/10/01 01:15:44 grant Exp $
+
+--- rinetd.c.orig 2003-04-15 11:19:23.000000000 +1000
++++ rinetd.c
+@@ -214,7 +214,7 @@ struct _rinetd_options
+ };
+
+ RinetdOptions options = {
+- "/etc/rinetd.conf"
++ RINETD_CONF
+ };
+
+ int readArgs (int argc,
+@@ -1362,8 +1362,6 @@ void RegisterPID(void)
+ if (pidLogFileName) {
+ pid_file_name = pidLogFileName;
+ }
+-/* add other systems with wherever they register processes */
+-#if defined(LINUX)
+ pid_file = fopen(pid_file_name, "w");
+ if (pid_file == NULL) {
+ /* non-fatal, non-Linux may lack /var/run... */
+@@ -1374,7 +1372,6 @@ void RegisterPID(void)
+ fprintf(pid_file, "%d\n", getpid());
+ fclose(pid_file);
+ }
+-#endif /* LINUX */
+ }
+
+ unsigned char nullAddress[4] = { 0, 0, 0, 0 };