-/* $OpenBSD: loongson_installboot.c,v 1.9 2022/10/19 19:08:25 kn Exp $ */
+/* $OpenBSD: loongson_installboot.c,v 1.10 2022/11/06 20:03:48 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
struct ufs_args args;
char cmd[60];
char dst[PATH_MAX];
- size_t mntlen, pathlen;
+ size_t mntlen;
int rslt;
/* Create directory for temporary mount point. */
/*
* Copy /usr/mdec/boot to /boot/boot.
*/
- pathlen = strlen(dst);
if (strlcat(dst, "/boot", sizeof(dst)) >= sizeof(dst)) {
rslt = -1;
warn("unable to build /boot path");
-/* $OpenBSD: macppc_installboot.c,v 1.9 2022/11/06 12:33:41 krw Exp $ */
+/* $OpenBSD: macppc_installboot.c,v 1.10 2022/11/06 20:03:49 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
- size_t mntlen, pathlen;
+ size_t mntlen;
int rslt;
/* Create directory for temporary mount point. */
/*
* Copy /usr/mdec/ofwboot to $FS/ofwboot.
*/
- pathlen = strlen(dst);
if (strlcat(dst, "/ofwboot", sizeof(dst)) >= sizeof(dst)) {
rslt = -1;
warn("unable to build /ofwboot path");
-/* $OpenBSD: octeon_installboot.c,v 1.9 2022/11/06 12:33:41 krw Exp $ */
+/* $OpenBSD: octeon_installboot.c,v 1.10 2022/11/06 20:03:49 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
struct msdosfs_args args;
char cmd[60];
char dst[PATH_MAX];
- size_t mntlen, pathlen;
+ size_t mntlen;
int rslt;
/* Create directory for temporary mount point. */
/*
* Copy /usr/mdec/boot to /mnt/boot.
*/
- pathlen = strlen(dst);
if (strlcat(dst, "/boot", sizeof(dst)) >= sizeof(dst)) {
rslt = -1;
warn("unable to build /boot path");