Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/raidctl Compare correct length string for force option ...



details:   https://anonhg.NetBSD.org/src/rev/6e7c22a49759
branches:  trunk
changeset: 339162:6e7c22a49759
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Tue Jun 30 17:02:14 2015 +0000

description:
Compare correct length string for force option to -A

diffstat:

 sbin/raidctl/raidctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a2c29e03ef35 -r 6e7c22a49759 sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Tue Jun 30 13:30:50 2015 +0000
+++ b/sbin/raidctl/raidctl.c    Tue Jun 30 17:02:14 2015 +0000
@@ -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 @@
 
        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;



Home | Main Index | Thread Index | Old Index