summaryrefslogtreecommitdiffstats
path: root/cmd-new-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-new-window.c
parentb0a99e85b66c8d74022525908a9584ce1b002da4 (diff)
Fall back silently to ~ or / rather than checking -c with access(), this
was the old behaviour.
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index a5085fff..fb89e24f 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -99,13 +99,6 @@ cmd_new_window_exec(struct cmd *self, struct cmd_q *cmdq)
NULL);
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