diff options
author | nicm <nicm> | 2020-03-17 11:10:12 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-17 11:10:12 +0000 |
commit | 115bb33257ece9eec1c890cc04683227678a895f (patch) | |
tree | 0352f5aa8363bd3f98f9c6f2f94d0354c85a88d0 /spawn.c | |
parent | fb396286ff8330f35eae54f47b7f233839a23e6f (diff) | |
download | rtmux-115bb33257ece9eec1c890cc04683227678a895f.tar.gz rtmux-115bb33257ece9eec1c890cc04683227678a895f.tar.bz2 rtmux-115bb33257ece9eec1c890cc04683227678a895f.zip |
Ignore default-shell (and use /bin/sh) if it invalid not just if it is
tmux itself, also refuse to set the option to something invalid in the
first place. GitHub issue 2120.
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -320,7 +320,7 @@ spawn_pane(struct spawn_context *sc, char **cause) /* Then the shell. If respawning, use the old one. */ if (~sc->flags & SPAWN_RESPAWN) { tmp = options_get_string(s->options, "default-shell"); - if (*tmp == '\0' || areshell(tmp)) + if (!checkshell(tmp)) tmp = _PATH_BSHELL; free(new_wp->shell); new_wp->shell = xstrdup(tmp); |