=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/spawn.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/tmux/spawn.c 2020/03/02 08:30:30 1.15 +++ src/usr.bin/tmux/spawn.c 2020/03/17 11:10:12 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: spawn.c,v 1.15 2020/03/02 08:30:30 nicm Exp $ */ +/* $OpenBSD: spawn.c,v 1.16 2020/03/17 11:10:12 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott @@ -320,7 +320,7 @@ /* 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);