Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 17:08:19 -0400 (EDT)
From:      dan@freebsddiary.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/29736: remove ambiguous statements from /etc/rc.conf
Message-ID:  <200108152108.f7FL8Jk00861@xeon.unixathome.org>

next in thread | raw e-mail | index | archive | help

>Number:         29736
>Category:       bin
>Synopsis:       make sure the user knows to modify /etc/rc.conf not /etc/defaults/rc.conf.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 15 15:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dan Langille
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.unixathome.org 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Aug 6 23:07:49 EDT 2001 root@xeon.unixathome.org:/usr/src/sys/compile/XEON i386


>Description:

At present, users see this:

$ more /etc/rc.conf
# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

That is misleading some of them.

I suggest is should say:

$ more /etc/rc.conf
# This file (/etc/rc.conf) now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to /etc/rc.conf.


>How-To-Repeat:

>Fix:

--- config.c.org	Wed Aug 15 13:10:49 2001
+++ config.c	Wed Aug 15 16:34:58 2001
@@ -390,8 +390,8 @@
     if (!rcSite)
 	return;
     if (write_header) {
-	fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf\n");
-	fprintf(rcSite, "# please make all changes to this file.\n\n");
+	fprintf(rcSite, "# This file (/etc/rc.conf) now contains just the overrides from /etc/defaults/rc.conf\n");
+	fprintf(rcSite, "# please make all changes to this /etc/rc.conf.\n\n");
 	fprintf(rcSite, "# Enable network daemons for user convenience.\n");
 	if ((t_loc = time(NULL)) != -1 && (cp = ctime(&t_loc)))
 	    fprintf(rcSite, "# Created: %s", cp);
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108152108.f7FL8Jk00861>