summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-05-24 09:42:49 +0000
committernicm <nicm@openbsd.org>2018-05-24 09:42:49 +0000
commit8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786 (patch)
tree12e36be4a7f7bf31f3e2d3675296183cf5d7e3c9 /usr.bin/tmux/window.c
parentImprove logging of the environment etc for new panes. (diff)
downloadwireguard-openbsd-8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786.tar.xz
wireguard-openbsd-8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786.zip
Make server_client_get_cwd used (almost) everywhere we need to work out
the cwd, and do not fall back to "." as it is pretty useless. GitHub issue 1331.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 4f4e485d7a8..4df0bddd172 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.209 2018/05/24 09:34:54 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.210 2018/05/24 09:42:49 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -918,7 +918,8 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
cmd = cmd_stringify_argv(wp->argc, wp->argv);
log_debug("%s: shell=%s", __func__, wp->shell);
- log_debug("%s: command=%s", __func__, cmd);
+ log_debug("%s: cmd=%s", __func__, cmd);
+ log_debug("%s: cwd=%s", __func__, cwd);
for (i = 0; i < wp->argc; i++)
log_debug("%s: argv[%d]=%s", __func__, i, wp->argv[i]);
environ_log(env, "%s: environment ", __func__);