From d42605f5c095c6cef3e18703b42264566616380b Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 22 Apr 2020 12:35:32 +0100 Subject: [PATCH] e sys main - change cwd to avoid loading .so's in ./ fixes T8676 --- src/bin/system/e_system_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/system/e_system_main.c b/src/bin/system/e_system_main.c index 5822eb936..6739dda4a 100644 --- a/src/bin/system/e_system_main.c +++ b/src/bin/system/e_system_main.c @@ -123,6 +123,8 @@ setuid_setup(void) fprintf(stderr, "Unable to set $HOME environment\n"); exit(1); } + // change CWD to / to avoid path search dlopens finding libs in ./ + chdir("/"); // die with parent - special as this is setuid #ifdef HAVE_PRCTL