[vte] spawn: Remove current directory from fallback search PATH



commit 546e51c343a1a773a21f4f03dbc254dcb7b7b73c
Author: Christian Persch <chpe src gnome org>
Date:   Wed Sep 30 16:52:31 2020 +0200

    spawn: Remove current directory from fallback search PATH
    
    Via https://gitlab.gnome.org/GNOME/glib/-/issues/2188

 src/spawn.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/spawn.cc b/src/spawn.cc
index 7bc5d8c5..6797d470 100644
--- a/src/spawn.cc
+++ b/src/spawn.cc
@@ -284,7 +284,7 @@ char const*
 SpawnContext::search_path() const noexcept
 {
         auto const path = m_search_path ? g_environ_getenv(environ(), "PATH") : nullptr;
-        return path ? : "/bin:/usr/bin:.";
+        return path ? : "/bin:/usr/bin";
 }
 
 size_t


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]