Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sushi When dropping out to a shell for the user via...



details:   https://anonhg.NetBSD.org/src/rev/a5e87ae8ac74
branches:  trunk
changeset: 501950:a5e87ae8ac74
user:      garbled <garbled%NetBSD.org@localhost>
date:      Tue Jan 09 19:01:57 2001 +0000

description:
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

diffstat:

 usr.sbin/sushi/blabel.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 47bc13364b94 -r a5e87ae8ac74 usr.sbin/sushi/blabel.c
--- a/usr.sbin/sushi/blabel.c   Tue Jan 09 18:56:24 2001 +0000
+++ b/usr.sbin/sushi/blabel.c   Tue Jan 09 19:01:57 2001 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index