mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Fix cfsd so that it detaches from the controlling terminal.
PR: closes ports/4757 Submitted by: saken@rmta.ml.org (Scott A. Kenney)
This commit is contained in:
parent
431451877e
commit
f4a9d73290
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=8258
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user