summaryrefslogtreecommitdiffstats
path: root/debian/patches/0018-Add-missing-separator-between-environment-variables-.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/0018-Add-missing-separator-between-environment-variables-.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/0018-Add-missing-separator-between-environment-variables-.patch b/debian/patches/0018-Add-missing-separator-between-environment-variables-.patch
new file mode 100644
index 0000000..ee38855
--- /dev/null
+++ b/debian/patches/0018-Add-missing-separator-between-environment-variables-.patch
@@ -0,0 +1,24 @@
+From: "Todd C. Miller" <Todd.Miller@sudo.ws>
+Date: Mon, 13 Mar 2023 08:04:32 -0600
+Subject: Add missing " ;
+ " separator between environment variables and command.
+
+This is a regression introduced in sudo 1.9.13. GitHub issue #254.
+
+bug: https://github.com/sudo-project/sudo/issues/254
+---
+ plugins/sudoers/logging.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c
+index bb31861..65ee04e 100644
+--- a/plugins/sudoers/logging.c
++++ b/plugins/sudoers/logging.c
+@@ -955,6 +955,7 @@ new_logline(const char *message, const char *errstr)
+ sudo_lbuf_append_esc(&lbuf, LBUF_ESC_CNTRL, " %s",
+ sudo_user.env_vars[i]);
+ }
++ sudo_lbuf_append(&lbuf, " ; ");
+ }
+ if (user_cmnd != NULL) {
+ sudo_lbuf_append_esc(&lbuf, LBUF_ESC_CNTRL|LBUF_ESC_BLANK,