diff options
author | Stef Walter <stefw@redhat.com> | 2014-10-02 08:21:28 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2014-10-02 08:24:44 +0200 |
commit | 960cb9a7db1950ad1414f70b0e3ec240542601ac (patch) | |
tree | 93ca10157b1119fa72bd56165eb00880a943aecf /common/test.c | |
parent | c9474683dd3db5ad87227dd3c3734ab31bfc01e9 (diff) | |
download | p11-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.c | 2 |
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); |