diff options
author | nicm <nicm> | 2015-10-31 14:51:15 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-10-31 14:51:15 +0000 |
commit | ba7fb49fb9b972a03547381783abe91be3fcfa37 (patch) | |
tree | 388a920b9c3d5abab80f1bb78fe30bff506146c7 /cmd-attach-session.c | |
parent | b0a99e85b66c8d74022525908a9584ce1b002da4 (diff) | |
download | rtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.tar.gz rtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.tar.bz2 rtmux-ba7fb49fb9b972a03547381783abe91be3fcfa37.zip |
Fall back silently to ~ or / rather than checking -c with access(), this
was the old behaviour.
Diffstat (limited to 'cmd-attach-session.c')
-rw-r--r-- | cmd-attach-session.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd-attach-session.c b/cmd-attach-session.c index b339b890..e5589277 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -99,12 +99,6 @@ cmd_attach_session(struct cmd_q *cmdq, const char *tflag, int dflag, int rflag, cwd = format_expand(ft, cflag); 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); - } free((void *)s->cwd); s->cwd = cwd; } |