Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2001 19:15:49 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        audit@FreeBSD.org
Subject:   Change fstab header written by sysinstall
Message-ID:  <5062.1008868549@axl.seasidesoftware.co.za>

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

Hi folks,

I propose the following change to sysinstall(8) so that it writes an
important message to the top of the generated /etc/fstab.

This should go in before 4.5-RELEASE.

The excessive calls to fprintf() just follow the existing style of the
code.

Ciao,
Sheldon.

Index: config.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/sysinstall/config.c,v
retrieving revision 1.195
diff -u -d -r1.195 config.c
--- config.c	22 Sep 2001 22:34:14 -0000	1.195
+++ config.c	20 Dec 2001 17:13:39 -0000
@@ -226,6 +226,9 @@
     
     /* Go for the burn */
     msgDebug("Generating /etc/fstab file\n");
+    fprintf(fstab, "# See the fstab(5) manual page for important information on automatic mounts\n");
+    fprintf(fstab, "# of remote filesystems before modifying this file.\n");
+    fprintf(fstab, "#\n");
     fprintf(fstab, "# Device\t\tMountpoint\tFStype\tOptions\t\tDump\tPass#\n");
     for (i = 0; i < nchunks; i++)
 	fprintf(fstab, "/dev/%s\t\t%s\t\t%s\t%s\t\t%d\t%d\n", name_of(chunk_list[i]), mount_point(chunk_list[i]),

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




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