The previous code used strv_join() when it generated the log
message for `varlinkctl --exec`. However this can lead to
inaccurate logging so use `quote_command_line()` instead.
Thanks to Lennart for suggesting this.
#include "bus-util.h"
#include "chase.h"
#include "env-util.h"
+#include "escape.h"
#include "fd-util.h"
#include "fileio.h"
#include "format-table.h"
_noreturn_ static void exec_with_listen_fds(char **exec_cmdline, int *fds, size_t n_fds) {
int r;
- _cleanup_free_ char *j = strv_join(exec_cmdline, " ");
+ _cleanup_free_ char *j = quote_command_line(exec_cmdline, SHELL_ESCAPE_EMPTY);
if (!j) {
log_oom();
_exit(EXIT_FAILURE);