summaryrefslogtreecommitdiff
path: root/security/cfs/files/patch-cfs.c
blob: 8d0347e413184edfb76e0eac1867d85e2ca283a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$FreeBSD$

--- cfs.c.orig
+++ cfs.c
@@ -43,7 +43,7 @@
 
 struct in_addr validhost;
 
-#if defined(SOLARIS2X) || defined(__NetBSD__)
+#if defined(SOLARIS2X) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 void nfs_program_2();
 void adm_program_2();
 #include <string.h>
@@ -240,7 +240,7 @@
  	setuid(0);
 	umask(0);
 
-#if defined(__NetBSD__) || defined(__bsdi__)
+#if defined(__NetBSD__) || defined(__bsdi__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 #ifndef DEBUG
 	/* detach from terminal */
 	daemon(0,0);