aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-10-31 23:56:35 +0000
committerThomas Adam <thomas@xteddy.org>2015-10-31 23:56:35 +0000
commitc975de2e07bdb21c85fc4f2c14a17bc00ca63aff (patch)
tree70ff97109da24dc7273b59df6ef6a9f298e16c48 /cmd-new-window.c
parent17f6c3be8eeb0b67d07f916026dab918795c0317 (diff)
parentba7fb49fb9b972a03547381783abe91be3fcfa37 (diff)
downloadrtmux-c975de2e07bdb21c85fc4f2c14a17bc00ca63aff.tar.gz
rtmux-c975de2e07bdb21c85fc4f2c14a17bc00ca63aff.tar.bz2
rtmux-c975de2e07bdb21c85fc4f2c14a17bc00ca63aff.zip
Merge branch 'obsd-master'
Conflicts: server.c
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