]> granicus.if.org Git - sudo/commitdiff
Use SET macro instead of bitwise OR.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 5 Feb 2019 23:47:08 +0000 (16:47 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 5 Feb 2019 23:47:08 +0000 (16:47 -0700)
plugins/sudoers/policy.c

index 09cf401eba0e137f90afb093e5ac0dde7daf44e3..003c787d8671d6dba510d94ee1b389c733017c33 100644 (file)
@@ -181,13 +181,13 @@ sudoers_policy_deserialize_info(void *v, char **runas_user, char **runas_group)
        if (MATCHES(*cur, "runas_user=")) {
            CHECK(*cur, "runas_user=");
            *runas_user = *cur + sizeof("runas_user=") - 1;
-           sudo_user.flags |= RUNAS_USER_SPECIFIED;
+           SET(sudo_user.flags, RUNAS_USER_SPECIFIED);
            continue;
        }
        if (MATCHES(*cur, "runas_group=")) {
            CHECK(*cur, "runas_group=");
            *runas_group = *cur + sizeof("runas_group=") - 1;
-           sudo_user.flags |= RUNAS_GROUP_SPECIFIED;
+           SET(sudo_user.flags, RUNAS_GROUP_SPECIFIED);
            continue;
        }
        if (MATCHES(*cur, "prompt=")) {