summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.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-session.c
parentb0a99e85b66c8d74022525908a9584ce1b002da4 (diff)
Fall back silently to ~ or / rather than checking -c with access(), this
was the old behaviour.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 90bb2e0e..65dc6cf5 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -124,13 +124,6 @@ cmd_new_session_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 (c != NULL && c->session == NULL)
cwd = c->cwd;
else if ((c0 = cmd_find_client(cmdq, NULL, 1)) != NULL)