From 3c76157137de747176466df8c7ecb85105ab9d53 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 31 Oct 2002 18:42:29 +0000 Subject: The if file exists check was wrong.. I limit it to a /bin/bash check... --- (limited to 'noncore') diff --git a/noncore/apps/opie-console/MyPty.cpp b/noncore/apps/opie-console/MyPty.cpp index c3c58be..23d4966 100644 --- a/noncore/apps/opie-console/MyPty.cpp +++ b/noncore/apps/opie-console/MyPty.cpp @@ -301,11 +301,9 @@ void MyPty::reload( const Profile& prof) { * will fallback to /bin/sh * which should be there 100% */ - if ( !QFile::exists(QFile::encodeName(m_cmd) ) ) - if (QFile::exists("/bin/bash") ) - m_cmd = "/bin/bash"; - else + if ( m_cmd.stripWhiteSpace() == "/bin/bash" && !QFile::exists(QFile::encodeName(m_cmd) ) ) m_cmd = "/bin/sh"; + int envcount = prof.readNumEntry("EnvVars", 0); for (int i=0; i