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:
Eitan Adler 2012-10-22 02:12:15 +00:00
parent 4e730560e9
commit d3522c026f

View file

@ -233,7 +233,7 @@ setfunc(int memfd, int argc, char *argv[])
while(argc--) {
for (i = 0; attrnames[i].name != NULL; i++) {
if (!strcmp(attrnames[i].name, argv[0])) {
if (!attrnames[i].kind & MDF_SETTABLE)
if (!(attrnames[i].kind & MDF_SETTABLE))
help("flags");
mrd.mr_flags |= attrnames[i].val;
break;