Date: Sun, 4 Dec 2011 21:32:18 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228267 - head/sys/boot/i386/zfsboot Message-ID: <201112042132.pB4LWITl003931@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Sun Dec 4 21:32:18 2011 New Revision: 228267 URL: http://svn.freebsd.org/changeset/base/228267 Log: zfsboot: print boot.config contents before parsing it as parsing can be a destructive operation MFC after: 2 weeks Modified: head/sys/boot/i386/zfsboot/zfsboot.c Modified: head/sys/boot/i386/zfsboot/zfsboot.c ============================================================================== --- head/sys/boot/i386/zfsboot/zfsboot.c Sun Dec 4 21:29:56 2011 (r228266) +++ head/sys/boot/i386/zfsboot/zfsboot.c Sun Dec 4 21:32:18 2011 (r228267) @@ -541,10 +541,10 @@ main(void) } if (*cmd) { - if (parse()) - autoboot = 0; if (!OPT_CHECK(RBX_QUIET)) printf("%s: %s", PATH_CONFIG, cmd); + if (parse()) + autoboot = 0; /* Do not process this command twice */ *cmd = 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112042132.pB4LWITl003931>