From 69f439eff387a6ecb52734e400b297a3c85f2285 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Tue, 21 Sep 2021 08:35:19 +0200 Subject: New upstream version 3.1.0 --- EnvScreen.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'EnvScreen.c') diff --git a/EnvScreen.c b/EnvScreen.c index acd1f33..0fcee83 100644 --- a/EnvScreen.c +++ b/EnvScreen.c @@ -5,7 +5,6 @@ #include #include -#include "CRT.h" #include "Macros.h" #include "Panel.h" #include "Platform.h" @@ -34,11 +33,9 @@ static void EnvScreen_scan(InfoScreen* this) { Panel_prune(panel); - CRT_dropPrivileges(); char* env = Platform_getProcessEnv(this->process->pid); - CRT_restorePrivileges(); if (env) { - for (char* p = env; *p; p = strrchr(p, 0) + 1) + for (const char* p = env; *p; p = strrchr(p, 0) + 1) InfoScreen_addLine(this, p); free(env); } -- cgit v1.2.3