[vte] spawn: Don't change PWD when no cwd is given
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] spawn: Don't change PWD when no cwd is given
- Date: Fri, 1 May 2020 09:05:20 +0000 (UTC)
commit 423c2ff47f44810adcb8fd6591c2bb93e759618f
Author: Christian Persch <chpe src gnome org>
Date: Fri May 1 11:05:04 2020 +0200
spawn: Don't change PWD when no cwd is given
src/spawn.cc | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/src/spawn.cc b/src/spawn.cc
index e7188661..ced0ba7a 100644
--- a/src/spawn.cc
+++ b/src/spawn.cc
@@ -249,8 +249,6 @@ merge_environ(char** envp /* consumed */,
*/
if (cwd)
g_hash_table_replace(table, g_strdup("PWD"), g_strdup(cwd));
- else
- g_hash_table_remove(table, "PWD");
auto array = g_ptr_array_sized_new(g_hash_table_size(table) + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]