From 50dd36a50ad76dee11edd67e69b5e0da11871fad Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 27 Dec 2016 09:24:07 +0100 Subject: add secure_getenv() function --- include/stdlib.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index a108c84a9..cbc0473f4 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -575,12 +575,10 @@ extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; libc_hidden_proto(getenv) __END_NAMESPACE_STD -#if 0 /* This function is similar to the above but returns NULL if the programs is running with SUID or SGID enabled. */ -extern char *__secure_getenv (const char *__name) +extern char *secure_getenv (const char *__name) __THROW __nonnull ((1)) __wur; -#endif #if defined __USE_SVID || defined __USE_XOPEN /* The SVID says this is in , but this seems a better place. */ -- cgit v1.2.3