Date: Mon, 13 Oct 1997 19:05:30 -0400 (EDT) From: saken@rmta.ml.org To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/4757: security/cfs - daemon does not detach from console Message-ID: <199710132305.TAA00688@chardos.connix.com> Resent-Message-ID: <199710140120.SAA08809@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4757 >Category: ports >Synopsis: security/cfs - daemon does not detach from console >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 13 18:20:01 PDT 1997 >Last-Modified: >Originator: Scott A. Kenney >Organization: Agent's of Fortune, LTD >Release: FreeBSD 2.2-STABLE i386 >Environment: FreeBSD rmta.ml.org 2.2-STABLE FreeBSD 2.2-STABLE #3: Sat Oct 11 10:42:37 EDT 1997 root@rmta.ml.org:/usr/src/sys/compile/CHARDOS i386 >Description: The cfs daemon does not call daemon(0,0) resulting in it remaining attached to the console at startup. >How-To-Repeat: Build, install, and run /usr/ports/security/cfs. >Fix: Add the following patch to /usr/ports/security/patches as patch-ac. Perhaps defined(__OpenBSD__) should be added as well. --- cfs.c.old Mon Oct 13 18:45:58 1997 +++ cfs.c Mon Oct 13 18:47:33 1997 @@ -233,7 +233,7 @@ setuid(0); umask(0); -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__FreeBSD__) #ifndef DEBUG /* detach from terminal */ daemon(0,0); >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710132305.TAA00688>