From 000fe6b7e6e7bf140c7cca7becc8fb7e8006fec7 Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Thu, 18 Mar 2021 08:28:22 -0600 Subject: [PATCH] bozo: Fix the test for bosserver '-cores none' The check for the '-cores none' parameter is incorrect resulting in the parameter to be taken as a directory path. Update the string comparison. Change-Id: I0d72c1add52d36e40f75981a86c16b5689d38fd8 Reviewed-on: https://gerrit.openafs.org/14559 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/bozo/bosserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bozo/bosserver.c b/src/bozo/bosserver.c index 900412c..b6a4a32 100644 --- a/src/bozo/bosserver.c +++ b/src/bozo/bosserver.c @@ -1058,7 +1058,7 @@ main(int argc, char **argv, char **envp) cmd_OptionAsFlag(opts, OPT_nofork, &nofork); if (cmd_OptionAsString(opts, OPT_cores, &DoCore) == 0) { - if (strcmp(DoCore, "none")) { + if (strcmp(DoCore, "none") == 0) { free(DoCore); DoCore = NULL; } -- 1.9.4