From daf085d6709a6c655b5d88c24db5a252c9a8874e Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 17 Feb 2011 17:17:43 +0300 Subject: [PATCH] b=24432 mount_lustre.c/parse_options() fix o=Chris.Horn i=Elena.Gryaznova to differentiate between 'force*' and 'force' --- lustre/utils/mount_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 79c1518..7b728c3 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -293,7 +293,7 @@ int parse_options(char *orig_options, int *flagp) retry = MAX_RETRIES; else if (retry < 0) retry = 0; - } else if (strncmp(opt, "force", 5) == 0) { + } else if (strcmp(opt, "force") == 0) { //XXX special check for 'force' option ++force; printf("force: %d\n", force); -- 1.8.3.1