-
Notifications
You must be signed in to change notification settings - Fork 34
Flux option parsing incorrectly sets option flag #167
Copy link
Copy link
Open
Description
Bug:
If parse_yesno is setting to yes, only the very first bit of opt (OPT_COBO) is flipped for every option passed in.
Spindle/src/flux/flux-spindle.c
Lines 362 to 365 in 585dacf
| if (strcasecmp(yesno, "no") == 0 || strcasecmp(yesno, "false") == 0 || strcasecmp(yesno, "0") == 0) | |
| *opt &= ~flag; | |
| else if (strcasecmp(yesno, "yes") == 0 || strcasecmp(yesno, "true") == 0 || strcasecmp(yesno, "1") == 0) | |
| *opt |= 1; |
Fix:
*opt |= flag;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels