sudo/sudo-separator.patch
Radovan Sroka ef588d91d6
RHEL: 9.7.0 ERRATUM
- sudo missing spacing and separator in log when using "--preserve-env=list"
Resolves: RHEL-71916

Signed-off-by: Radovan Sroka <rsroka@redhat.com>
2025-04-25 15:20:40 +02:00

20 lines
756 B
Diff

diff -up ./lib/eventlog/eventlog.c.separator ./lib/eventlog/eventlog.c
--- ./lib/eventlog/eventlog.c.separator 2025-03-31 17:03:34.700244658 +0200
+++ ./lib/eventlog/eventlog.c 2025-03-31 17:04:39.943669191 +0200
@@ -176,6 +176,7 @@ new_logline(int event_type, int flags, s
sudo_lbuf_append_esc(&lbuf, LBUF_ESC_CNTRL, " %s",
evlog->env_add[i]);
}
+ sudo_lbuf_append(&lbuf, " ; ");
}
if (evlog->command != NULL) {
sudo_lbuf_append_esc(&lbuf, LBUF_ESC_CNTRL|LBUF_ESC_BLANK,
@@ -197,6 +198,7 @@ new_logline(int event_type, int flags, s
}
}
}
+ sudo_lbuf_append(&lbuf, " ; ");
/*
if (event_type == EVLOG_EXIT) {
if (args->signal_name != NULL) {