aboutsummaryrefslogtreecommitdiff
path: root/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-10-31 14:51:15 +0000
committernicm <nicm>2015-10-31 14:51:15 +0000
commitba7fb49fb9b972a03547381783abe91be3fcfa37 (patch)
tree388a920b9c3d5abab80f1bb78fe30bff506146c7 /cmd-split-window.c
parentb0a99e85b66c8d74022525908a9584ce1b002da4 (diff)
downloadrtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.tar.gz
rtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.tar.bz2
rtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.zip
Fall back silently to ~ or / rather than checking -c with access(), this
was the old behaviour.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 6adb19a8..fb766d3b 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -93,13 +93,6 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
NULL);
to_free = cwd = format_expand(ft, args_get(args, 'c'));
format_free(ft);
-
- if (access(cwd, X_OK) != 0) {
- free((void *)cwd);
- cmdq_error(cmdq, "bad working directory: %s",
- strerror(errno));
- return (CMD_RETURN_ERROR);
- }
} else if (cmdq->client != NULL && cmdq->client->session == NULL)
cwd = cmdq->client->cwd;
else