When dropping out to a shell for the user via F9, use $SHELL if it's
available, rather than hardcoding /bin/sh. Problem noted by itojun on tech-userlevel
This commit is contained in:
parent
442e2e73a9
commit
f6177aaaba
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: blabel.c,v 1.3 2001/01/09 17:08:47 augustss Exp $ */
|
||||
/* $NetBSD: blabel.c,v 1.4 2001/01/09 19:01:57 garbled Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -175,7 +175,10 @@ do_shell(EObjectType cdktype, void *object, void *clientdata, chtype key)
|
||||
wrefresh(stdscr);
|
||||
savetty();
|
||||
reset_shell_mode();
|
||||
system("/bin/sh");
|
||||
if (getenv("SHELL") != NULL)
|
||||
system(getenv("SHELL"));
|
||||
else
|
||||
system("/bin/sh");
|
||||
resetty();
|
||||
wclear(stdscr);
|
||||
wrefresh(stdscr);
|
||||
|
Loading…
Reference in New Issue
Block a user