Fall back silently to ~ or / rather than checking -c with access(), this

was the old behaviour.
This commit is contained in:
nicm
2015-10-31 14:51:15 +00:00
parent b0a99e85b6
commit ba7fb49fb9
4 changed files with 0 additions and 27 deletions

View File

@ -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