From owner-freebsd-audit Thu Dec 20 9:14: 2 2001 Delivered-To: freebsd-audit@freebsd.org Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by hub.freebsd.org (Postfix) with ESMTP id 0263937B405 for ; Thu, 20 Dec 2001 09:13:58 -0800 (PST) Received: from sheldonh (helo=axl.seasidesoftware.co.za) by axl.seasidesoftware.co.za with local-esmtp (Exim 3.33 #1) id 16H6nN-0001Jf-00 for audit@FreeBSD.org; Thu, 20 Dec 2001 19:15:49 +0200 From: Sheldon Hearn To: audit@FreeBSD.org Subject: Change fstab header written by sysinstall Date: Thu, 20 Dec 2001 19:15:49 +0200 Message-ID: <5062.1008868549@axl.seasidesoftware.co.za> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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