diff options
-rw-r--r-- | extrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |