From 3c4c149abae048e421f8a18e6543b247e703e95b Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 13 Jun 2016 15:01:08 +0200 Subject: quote cwd too --- extrace.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extrace.c') diff --git a/extrace.c b/extrace.c index bb256d6..8619fa1 100644 --- a/extrace.c +++ b/extrace.c @@ -206,8 +206,10 @@ handle_msg(struct cn_msg *cn_hdr) if (!flat) fprintf(output, "%*s", 2*d, ""); fprintf(output, "%d ", ev->event_data.exec.process_pid); - if (show_cwd) - fprintf(output, "%s %% ", cwd); + if (show_cwd) { + print_shquoted(cwd); + fprintf(output, " %% "); + } if (full_path) print_shquoted(exe); -- cgit 1.4.1