diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-03-17 12:01:28 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-03-17 12:01:28 +0000 |
commit | 0610f66fa9c8e5ac46e796a2dbc89bb1b369d84f (patch) | |
tree | 5a1203bc453a07be05a2c652e635570adb8ee672 /spawn.c | |
parent | 71eb965dd9ef1e511dfb6d2b24196cca550e1284 (diff) | |
parent | 115bb33257ece9eec1c890cc04683227678a895f (diff) | |
download | rtmux-0610f66fa9c8e5ac46e796a2dbc89bb1b369d84f.tar.gz rtmux-0610f66fa9c8e5ac46e796a2dbc89bb1b369d84f.tar.bz2 rtmux-0610f66fa9c8e5ac46e796a2dbc89bb1b369d84f.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -318,7 +318,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); |