raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=bcb4e27bed066edb1fc9c8b5ed8a3f2c93ab89c3

commit bcb4e27bed066edb1fc9c8b5ed8a3f2c93ab89c3
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Nov 20 08:44:48 2019 +0000

    close fd's from the host terminal so shell doesnt inherit them all
    
    only inherit the fd's we need/want. use eina_file_close_from()
---
 src/bin/termpty.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 1f18e56..f1fc815 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -778,6 +778,9 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const 
char *cd,
              snprintf(buf, sizeof(buf), "WINDOWID=%lu", window_id);
              putenv(buf);
           }
+#if ((EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 24)) || 
((EFL_VERSION_MAJOR == 1) && (EFL_VERSION_MINOR == 23) && (EFL_VERSION_MICRO == 
99))
+        eina_file_close_from(3, NULL);
+#endif
         if (!login_shell)
           execvp(args[0], (char *const *)args);
         else

-- 


Reply via email to