summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst6
-rw-r--r--libgcompat/stdlib.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 96de004..f97724f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -55,6 +55,12 @@ socket
* Add __poll_chk
+stdlib
+------
+
+* Add secure_getenv alias to __secure_getenv.
+
+
string
------
diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c
index a08f914..82f7602 100644
--- a/libgcompat/stdlib.c
+++ b/libgcompat/stdlib.c
@@ -5,6 +5,8 @@
#include <stdlib.h> /* getenv, realpath, strto* */
#include <unistd.h> /* get*id */
+#include "alias.h"
+
/**
* Resolve a pathname, with buffer overflow checking.
*
@@ -30,6 +32,7 @@ char *__secure_getenv(const char *name)
return getenv(name);
}
+weak_alias(__secure_getenv, secure_getenv);
/**
* Underlying function for strtod.