[hackers] [st] If there is really someone without SHELL set, help him/her. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Tue, 9 Oct 2012 19:36:09 +0200 (CEST)

changeset: 364:4740aa5344f5
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Tue Oct 09 19:33:26 2012 +0200
files: st.c
description:
If there is really someone without SHELL set, help him/her.


diff -r a55a5664ceea -r 4740aa5344f5 st.c
--- a/st.c Sun Oct 07 11:06:17 2012 +0200
+++ b/st.c Tue Oct 09 19:33:26 2012 +0200
_AT_@ -865,6 +865,9 @@
         char **args;
         char *envshell = getenv("SHELL");
 
+ if (envshell == NULL)
+ envshell ="/bin/sh";
+
         unsetenv("COLUMNS");
         unsetenv("LINES");
         unsetenv("TERMCAP");
Received on Tue Oct 09 2012 - 19:36:09 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 09 2012 - 19:48:11 CEST