mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
2
spawn.c
2
spawn.c
@ -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);
|
||||
|
Reference in New Issue
Block a user