From aff014ff20159287f76d084e46252953703b1de4 Mon Sep 17 00:00:00 2001 From: Gary Palmer Date: Thu, 18 May 1995 23:36:21 +0000 Subject: [PATCH] Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to fail :-( --- release/sysinstall/command.c | 4 ++-- usr.sbin/sade/command.c | 4 ++-- usr.sbin/sysinstall/command.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/release/sysinstall/command.c b/release/sysinstall/command.c index ff29b4e68b5..08a58a1f3a2 100644 --- a/release/sysinstall/command.c +++ b/release/sysinstall/command.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: command.c,v 1.5 1995/05/18 02:42:31 jkh Exp $ + * $Id: command.c,v 1.6 1995/05/18 09:01:44 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -107,7 +107,7 @@ command_shell_add(char *key, char *fmt, ...) commandStack[numCommands]->ncmds = 1; commandStack[numCommands]->cmds[0].type = CMD_SHELL; commandStack[numCommands]->cmds[0].ptr = (void *)cmd; - commandStack[numCommands]->cmds[0].data = NULL; + commandStack[numCommands++]->cmds[0].data = NULL; } /* Add a shell command under a given key */ diff --git a/usr.sbin/sade/command.c b/usr.sbin/sade/command.c index ff29b4e68b5..08a58a1f3a2 100644 --- a/usr.sbin/sade/command.c +++ b/usr.sbin/sade/command.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: command.c,v 1.5 1995/05/18 02:42:31 jkh Exp $ + * $Id: command.c,v 1.6 1995/05/18 09:01:44 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -107,7 +107,7 @@ command_shell_add(char *key, char *fmt, ...) commandStack[numCommands]->ncmds = 1; commandStack[numCommands]->cmds[0].type = CMD_SHELL; commandStack[numCommands]->cmds[0].ptr = (void *)cmd; - commandStack[numCommands]->cmds[0].data = NULL; + commandStack[numCommands++]->cmds[0].data = NULL; } /* Add a shell command under a given key */ diff --git a/usr.sbin/sysinstall/command.c b/usr.sbin/sysinstall/command.c index ff29b4e68b5..08a58a1f3a2 100644 --- a/usr.sbin/sysinstall/command.c +++ b/usr.sbin/sysinstall/command.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: command.c,v 1.5 1995/05/18 02:42:31 jkh Exp $ + * $Id: command.c,v 1.6 1995/05/18 09:01:44 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -107,7 +107,7 @@ command_shell_add(char *key, char *fmt, ...) commandStack[numCommands]->ncmds = 1; commandStack[numCommands]->cmds[0].type = CMD_SHELL; commandStack[numCommands]->cmds[0].ptr = (void *)cmd; - commandStack[numCommands]->cmds[0].data = NULL; + commandStack[numCommands++]->cmds[0].data = NULL; } /* Add a shell command under a given key */