summaryrefslogtreecommitdiff
path: root/libc/stdlib/secure_getenv.c
blob: c42bbdb0a42a666984050c582c6ae080cebbce2a (plain)
1
2
3
4
5
6
7
#include <stdlib.h>
#include <unistd.h>

char *secure_getenv(const char *name) {
	if (issetugid()) return NULL;
	return getenv(name);
}