aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-10-14 12:37:04 +0800
committerjdp <jdp@FreeBSD.org>1997-10-14 12:37:04 +0800
commit901492b9e2a3a859645bd36f4ebbdcc6a54f9365 (patch)
tree5c4740dee9c54bed4214b957d5c544c8e467db8f
parentcaefe7f4794c265ac2d36f62c19ec56ffa80934a (diff)
downloadfreebsd-ports-gnome-901492b9e2a3a859645bd36f4ebbdcc6a54f9365.tar.gz
freebsd-ports-gnome-901492b9e2a3a859645bd36f4ebbdcc6a54f9365.tar.zst
freebsd-ports-gnome-901492b9e2a3a859645bd36f4ebbdcc6a54f9365.zip
Fix cfsd so that it detaches from the controlling terminal.
PR: closes ports/4757 Submitted by: saken@rmta.ml.org (Scott A. Kenney)
-rw-r--r--security/cfs/files/patch-ab11
1 files changed, 10 insertions, 1 deletions
diff --git a/security/cfs/files/patch-ab b/security/cfs/files/patch-ab
index f9ba2f8476ed..3bdd4e1ec5b0 100644
--- a/security/cfs/files/patch-ab
+++ b/security/cfs/files/patch-ab
@@ -1,5 +1,5 @@
--- cfs.c.orig Wed Mar 20 09:57:56 1996
-+++ cfs.c Wed Jul 30 12:06:01 1997
++++ cfs.c Mon Oct 13 21:30:22 1997
@@ -42,7 +42,7 @@
struct in_addr validhost;
@@ -9,3 +9,12 @@
void nfs_program_2();
void adm_program_2();
#include <string.h>
+@@ -233,7 +233,7 @@
+ setuid(0);
+ umask(0);
+
+-#if defined(__NetBSD__)
++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+ #ifndef DEBUG
+ /* detach from terminal */
+ daemon(0,0);