- add sudo-1.8.19p2-decrement_env_len.patch - In sudo_unsetenv_nodebug(), decrement envp.env_len after removing the variable [bsc#981124] - add sudo-1.8.19p2-dont_overwrite_ret_val.patch - don't overwrite the return value of ldap_sasl_interactive_bind_s() by the subsequent call to sudo_set_krb5_ccache_name() [bsc#981124] OBS-URL: https://build.opensuse.org/request/show/453650 OBS-URL: https://build.opensuse.org/package/show/Base:System/sudo?expand=0&rev=114
22 lines
687 B
Diff
22 lines
687 B
Diff
# HG changeset patch
|
|
# User Todd C. Miller <Todd.Miller@courtesan.com>
|
|
# Date 1484590376 25200
|
|
# Node ID 3d87a008671c73ff8c058ce8576cc791d50086cc
|
|
# Parent 5323dfcfb009a2436bf7bd867e4d308e0935356b
|
|
In sudo_unsetenv_nodebug(), decrement envp.env_len after removing
|
|
the variable. From Paul Zirnik of SUSE.
|
|
|
|
diff -r 5323dfcfb009 -r 3d87a008671c plugins/sudoers/env.c
|
|
--- a/plugins/sudoers/env.c Sun Jan 15 19:13:26 2017 -0700
|
|
+++ b/plugins/sudoers/env.c Mon Jan 16 11:12:56 2017 -0700
|
|
@@ -497,6 +497,7 @@
|
|
char **cur = ep;
|
|
while ((*cur = *(cur + 1)) != NULL)
|
|
cur++;
|
|
+ env.env_len--;
|
|
/* Keep going, could be multiple instances of the var. */
|
|
} else {
|
|
ep++;
|
|
|
|
|