1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/security/cfs/files/patch-ab
John Polstra f4a9d73290 Fix cfsd so that it detaches from the controlling terminal.
PR:		closes ports/4757
Submitted by:	saken@rmta.ml.org (Scott A. Kenney)
1997-10-14 04:37:04 +00:00

21 lines
538 B
Plaintext

--- cfs.c.orig Wed Mar 20 09:57:56 1996
+++ cfs.c Mon Oct 13 21:30:22 1997
@@ -42,7 +42,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>
@@ -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);