Fix conditional expression: previously a bit vector was being operated
on by a logical not instead of the entire expression. Approved by: cperciva MFC after: 3 days
This commit is contained in:
parent
90e13cd2eb
commit
31cc468089
@ -233,7 +233,7 @@ setfunc(int memfd, int argc, char *argv[])
|
|||||||
while(argc--) {
|
while(argc--) {
|
||||||
for (i = 0; attrnames[i].name != NULL; i++) {
|
for (i = 0; attrnames[i].name != NULL; i++) {
|
||||||
if (!strcmp(attrnames[i].name, argv[0])) {
|
if (!strcmp(attrnames[i].name, argv[0])) {
|
||||||
if (!attrnames[i].kind & MDF_SETTABLE)
|
if (!(attrnames[i].kind & MDF_SETTABLE))
|
||||||
help("flags");
|
help("flags");
|
||||||
mrd.mr_flags |= attrnames[i].val;
|
mrd.mr_flags |= attrnames[i].val;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user