]> granicus.if.org Git - sudo/commitdiff
Update conversion of DID_* to KEPT_* to match the new values of
authorTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 29 Aug 2018 02:25:06 +0000 (20:25 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 29 Aug 2018 02:25:06 +0000 (20:25 -0600)
DID_* and KEPT_*.

plugins/sudoers/env.c

index 9b65c9fbdff76affcb922fd8510400b4f574b2e2..9112ef51e71cda70534aa1bdbd1170c7d757d8ed 100644 (file)
@@ -917,7 +917,7 @@ rebuild_env(void)
                env_update_didvar(*ep, &didvar);
            }
        }
-       didvar |= didvar << 8;          /* convert DID_* to KEPT_* */
+       didvar |= didvar << 16;         /* convert DID_* to KEPT_* */
 
        /*
         * Add in defaults.  In -i mode these come from the runas user,