From: kn Date: Wed, 19 Oct 2022 19:08:25 +0000 (+0000) Subject: Replace "newfs/fsck_ext2fs" with "newfs/msdos -t ext2fs", constify X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a08d2734c1dc95fe96d7c7cb0d28c4603f812f67;p=openbsd Replace "newfs/fsck_ext2fs" with "newfs/msdos -t ext2fs", constify OK miod --- 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];