summaryrefslogtreecommitdiff
path: root/common/test.c
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-10-02 08:21:28 +0200
committerStef Walter <stefw@redhat.com>2014-10-02 08:24:44 +0200
commit960cb9a7db1950ad1414f70b0e3ec240542601ac (patch)
tree93ca10157b1119fa72bd56165eb00880a943aecf /common/test.c
parentc9474683dd3db5ad87227dd3c3734ab31bfc01e9 (diff)
downloadp11-kit-960cb9a7db1950ad1414f70b0e3ec240542601ac.tar.gz
common: Use secure_getenv() implementation when setuid
In anything security sensitive, use secure_getenv() implementation for retrieving environment variables.
Diffstat (limited to 'common/test.c')
-rw-r--r--common/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/test.c b/common/test.c
index 5a1cf72..9605d03 100644
--- a/common/test.c
+++ b/common/test.c
@@ -322,7 +322,7 @@ expand_tempdir (const char *name)
{
const char *env;
- env = getenv ("TMPDIR");
+ env = secure_getenv ("TMPDIR");
if (env && env[0]) {
return p11_path_build (env, name, NULL);