aboutsummaryrefslogtreecommitdiffstats
path: root/EnvScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:35:20 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:35:20 +0200
commita2b6942d15d220bb0518003d4f818a922d88e9f9 (patch)
tree7f60a44dec34af24da75b8d5b68c88eca94b9f6a /EnvScreen.c
parent37d8824862a2f6b9375022e1c45ba4548162650f (diff)
parent69f439eff387a6ecb52734e400b297a3c85f2285 (diff)
downloaddebian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.tar.gz
debian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.tar.bz2
debian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.zip
Update upstream source from tag 'upstream/3.1.0'
Update to upstream version '3.1.0' with Debian dir d4ecdd99a38d7105de46689cebcb051bf0046a76
Diffstat (limited to 'EnvScreen.c')
-rw-r--r--EnvScreen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/EnvScreen.c b/EnvScreen.c
index acd1f33..0fcee83 100644
--- a/EnvScreen.c
+++ b/EnvScreen.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
-#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);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy