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 <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
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;
}