Module Name: src
Committed By: sborrill
Date: Tue Jun 30 17:02:14 UTC 2015
Modified Files:
src/sbin/raidctl: raidctl.c
Log Message:
Compare correct length string for force option to -A
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 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.60 src/sbin/raidctl/raidctl.c:1.61
--- src/sbin/raidctl/raidctl.c:1.60 Fri Jun 26 01:16:54 2015
+++ src/sbin/raidctl/raidctl.c Tue Jun 30 17:02:14 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: raidctl.c,v 1.60 2015/06/26 01:16:54 pooka Exp $ */
+/* $NetBSD: raidctl.c,v 1.61 2015/06/30 17:02:14 sborrill 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.60 2015/06/26 01:16:54 pooka Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.61 2015/06/30 17:02:14 sborrill 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;