summaryrefslogtreecommitdiff
path: root/net/rinetd/patches/patch-ab
blob: 84ca2cd235f86b0faf72c8cb9fae1cb8d33ab751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 };