From 06ac39463d883ae56b3a442f7fb130b56cfec8ac Mon Sep 17 00:00:00 2001 From: sborrill Date: Tue, 30 Jun 2015 17:02:14 +0000 Subject: [PATCH] Compare correct length string for force option to -A --- sbin/raidctl/raidctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c index 9b2080915be8..741f4a317184 100644 --- a/sbin/raidctl/raidctl.c +++ b/sbin/raidctl/raidctl.c @@ -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 #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 *autoconf) 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;