Commit 75809d00 authored by Simon McVittie's avatar Simon McVittie
Browse files

utils: Use getenv rather than secure_getenv



The shared library could conceivably get linked into something at a
privilege boundary, but the tools have no such requirement. This
means we can reduce our glibc dependencies when not building the actual
library.

Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 6e5413d8
......@@ -971,7 +971,7 @@ main (int argc, char **argv)
int code = 0;
char *message = NULL;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
set_debug_flags( getenv("CAPSULE_DEBUG") );
while( 1 )
{
......
......@@ -29,7 +29,7 @@ int main (int argc, char **argv)
void *handle;
const char *libname;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc < 2 )
{
......
......@@ -304,7 +304,7 @@ int main (int argc, char **argv)
exit( 1 );
}
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc > 2 )
prefix = argv[2];
......
......@@ -34,7 +34,7 @@ int main (int argc, char **argv)
int error = 0;
int e = 0;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc < 2 )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment