Module Name: src
Committed By: snj
Date: Sun Jul 5 20:20:10 UTC 2015
Modified Files:
src/sbin/raidctl [netbsd-7]: raidctl.c
Log Message:
Pull up following revision(s) (requested by sborrill in ticket #862):
sbin/raidctl/raidctl.c: revision 1.61
Compare correct length string for force option to -A
To generate a diff of this commit:
cvs rdiff -u -r1.57.4.2 -r1.57.4.3 src/sbin/raidctl/raidctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/raidctl/raidctl.c
diff -u src/sbin/raidctl/raidctl.c:1.57.4.2 src/sbin/raidctl/raidctl.c:1.57.4.3
--- src/sbin/raidctl/raidctl.c:1.57.4.2 Tue Jun 9 20:49:28 2015
+++ src/sbin/raidctl/raidctl.c Sun Jul 5 20:20:10 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: raidctl.c,v 1.57.4.2 2015/06/09 20:49:28 snj Exp $ */
+/* $NetBSD: raidctl.c,v 1.57.4.3 2015/07/05 20:20:10 snj Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.57.4.2 2015/06/09 20:49:28 snj Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.57.4.3 2015/07/05 20:20:10 snj Exp $");
#endif
@@ -812,7 +812,7 @@ set_autoconfig(int fd, int raidID, char
if (strncasecmp(autoconf, "root", 4) == 0 ||
strncasecmp(autoconf, "hard", 4) == 0 ||
- strncasecmp(autoconf, "force", 4) == 0) {
+ strncasecmp(autoconf, "force", 5) == 0) {
root_config = 1;
} else if (strncasecmp(autoconf, "soft", 4) == 0) {
root_config = 2;