msdos".
Add some missing spaces after "=".
Constify the static strings.
Prodded a while ago by deraadt@, tweaks from kn@, ok kn@
-/* $OpenBSD: efi_installboot.c,v 1.2 2022/02/03 10:25:14 visa Exp $ */
+/* $OpenBSD: efi_installboot.c,v 1.3 2022/08/31 20:52:15 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
static int
create_filesystem(struct disklabel *dl, char part)
{
- static char *newfsfmt ="/sbin/newfs_msdos %s >/dev/null";
+ static const char *newfsfmt = "/sbin/newfs -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
int rslt;
static void
write_filesystem(struct disklabel *dl, char part)
{
- static char *fsckfmt = "/sbin/fsck_msdos %s >/dev/null";
+ static const char *fsckfmt = "/sbin/fsck -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
-/* $OpenBSD: i386_installboot.c,v 1.40 2021/07/20 14:51:56 kettenis Exp $ */
+/* $OpenBSD: i386_installboot.c,v 1.41 2022/08/31 20:52:15 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
int
create_filesystem(struct disklabel *dl, char part)
{
- static char *newfsfmt ="/sbin/newfs_msdos %s >/dev/null";
+ static const char *newfsfmt = "/sbin/newfs -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
int rslt;
void
write_filesystem(struct disklabel *dl, char part)
{
- static char *fsckfmt = "/sbin/fsck_msdos %s >/dev/null";
+ static const char *fsckfmt = "/sbin/fsck -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
-/* $OpenBSD: macppc_installboot.c,v 1.4 2021/07/20 14:51:56 kettenis Exp $ */
+/* $OpenBSD: macppc_installboot.c,v 1.5 2022/08/31 20:52:15 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
static int
create_filesystem(struct disklabel *dl, char part)
{
- static char *newfsfmt ="/sbin/newfs_msdos %s >/dev/null";
+ static const char *newfsfmt = "/sbin/newfs -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
int rslt;
static void
write_filesystem(struct disklabel *dl, char part)
{
- static char *fsckfmt = "/sbin/fsck_msdos %s >/dev/null";
+ static const char *fsckfmt = "/sbin/fsck -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
-/* $OpenBSD: octeon_installboot.c,v 1.4 2021/07/20 14:51:56 kettenis Exp $ */
+/* $OpenBSD: octeon_installboot.c,v 1.5 2022/08/31 20:52:15 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
static int
create_filesystem(struct disklabel *dl, char part)
{
- static char *newfsfmt ="/sbin/newfs_msdos %s >/dev/null";
+ static const char *newfsfmt = "/sbin/newfs -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
int rslt;
static void
write_filesystem(struct disklabel *dl, char part)
{
- static char *fsckfmt = "/sbin/fsck_msdos %s >/dev/null";
+ static char *fsckfmt = "/sbin/fsck -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
-/* $OpenBSD: powerpc64_installboot.c,v 1.3 2021/07/20 14:51:56 kettenis Exp $ */
+/* $OpenBSD: powerpc64_installboot.c,v 1.4 2022/08/31 20:52:15 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
static int
create_filesystem(struct disklabel *dl, char part)
{
- static char *newfsfmt ="/sbin/newfs_msdos %s >/dev/null";
+ static const char *newfsfmt = "/sbin/newfs -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
int rslt;
static void
write_filesystem(struct disklabel *dl, char part)
{
- static char *fsckfmt = "/sbin/fsck_msdos %s >/dev/null";
+ static const char *fsckfmt = "/sbin/fsck -t msdos %s >/dev/null";
struct msdosfs_args args;
char cmd[60];
char dir[PATH_MAX];