diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-31 14:51:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-31 14:51:16 +0000 |
commit | 394736931b2b2686fe932cda0157e8adf1363365 (patch) | |
tree | 4b1e1c13804852cbca6ef641bf97cf0061b18766 /usr.bin/tmux/cmd-new-window.c | |
parent | 0c2f3fa14b7dba1601821d1e7d9bab203a1b40bd (diff) |
Fall back silently to ~ or / rather than checking -c with access(), this
was the old behaviour.
Diffstat (limited to 'usr.bin/tmux/cmd-new-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-new-window.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/tmux/cmd-new-window.c b/usr.bin/tmux/cmd-new-window.c index 5762ba95473..8a4475193d5 100644 --- a/usr.bin/tmux/cmd-new-window.c +++ b/usr.bin/tmux/cmd-new-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-window.c,v 1.50 2015/10/31 08:13:58 nicm Exp $ */ +/* $OpenBSD: cmd-new-window.c,v 1.51 2015/10/31 14:51:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 |