From a08d2734c1dc95fe96d7c7cb0d28c4603f812f67 Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 19 Oct 2022 19:08:25 +0000 Subject: [PATCH] Replace "newfs/fsck_ext2fs" with "newfs/msdos -t ext2fs", constify OK miod --- usr.sbin/installboot/loongson_installboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/installboot/loongson_installboot.c b/usr.sbin/installboot/loongson_installboot.c index dd0d47bc92e..c0dd6a57f9e 100644 --- a/usr.sbin/installboot/loongson_installboot.c +++ b/usr.sbin/installboot/loongson_installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loongson_installboot.c,v 1.8 2022/09/27 11:48:57 kn Exp $ */ +/* $OpenBSD: loongson_installboot.c,v 1.9 2022/10/19 19:08:25 kn Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -100,8 +100,8 @@ md_installboot(int devfd, char *dev) static void write_filesystem(struct disklabel *dl, char part) { - static char *fsckfmt = "/sbin/fsck_ext2fs %s >/dev/null"; - static char *newfsfmt ="/sbin/newfs_ext2fs %s >/dev/null"; + static const char *fsckfmt = "/sbin/fsck -t ext2fs %s >/dev/null"; + static const char *newfsfmt = "/sbin/newfs -t ext2fs %s >/dev/null"; struct ufs_args args; char cmd[60]; char dst[PATH_MAX]; -- 2.20.1