Skip to content
Snippets Groups Projects
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: default avatarSimon McVittie <smcv@collabora.com>
parent 6e5413d8
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -971,7 +971,7 @@ main (int argc, char **argv) ...@@ -971,7 +971,7 @@ main (int argc, char **argv)
int code = 0; int code = 0;
char *message = NULL; char *message = NULL;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") ); set_debug_flags( getenv("CAPSULE_DEBUG") );
while( 1 ) while( 1 )
{ {
......
...@@ -29,7 +29,7 @@ int main (int argc, char **argv) ...@@ -29,7 +29,7 @@ int main (int argc, char **argv)
void *handle; void *handle;
const char *libname; const char *libname;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") ); set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc < 2 ) if( argc < 2 )
{ {
......
...@@ -304,7 +304,7 @@ int main (int argc, char **argv) ...@@ -304,7 +304,7 @@ int main (int argc, char **argv)
exit( 1 ); exit( 1 );
} }
set_debug_flags( secure_getenv("CAPSULE_DEBUG") ); set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc > 2 ) if( argc > 2 )
prefix = argv[2]; prefix = argv[2];
......
...@@ -34,7 +34,7 @@ int main (int argc, char **argv) ...@@ -34,7 +34,7 @@ int main (int argc, char **argv)
int error = 0; int error = 0;
int e = 0; int e = 0;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") ); set_debug_flags( getenv("CAPSULE_DEBUG") );
if( argc < 2 ) if( argc < 2 )
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment