From a3295a8b0982a279b267c42e0b8e746fa72962a0 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sun, 4 Dec 2011 21:32:18 +0000 Subject: [PATCH] zfsboot: print boot.config contents before parsing it as parsing can be a destructive operation MFC after: 2 weeks --- sys/boot/i386/zfsboot/zfsboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/i386/zfsboot/zfsboot.c b/sys/boot/i386/zfsboot/zfsboot.c index 48a29f5a5a5f..afefc4e89e7e 100644 --- a/sys/boot/i386/zfsboot/zfsboot.c +++ b/sys/boot/i386/zfsboot/zfsboot.c @@ -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; }