summaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
authorKarel Zak2012-12-10 13:31:08 +0100
committerKarel Zak2012-12-10 13:31:08 +0100
commitcd79396704f7e9828217e75d38cc36b011b4d741 (patch)
treefbd87da3d22edac75d76e468768e102c143a031d /libmount
parentlibmount: avoid endless loop in mnt_get_kernel_cmdline_option (diff)
downloadkernel-qcow2-util-linux-cd79396704f7e9828217e75d38cc36b011b4d741.tar.gz
kernel-qcow2-util-linux-cd79396704f7e9828217e75d38cc36b011b4d741.tar.xz
kernel-qcow2-util-linux-cd79396704f7e9828217e75d38cc36b011b4d741.zip
libmount: don't use safe_getenv() for test
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index 8e6b147b8..d473bc499 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -926,7 +926,7 @@ char *mnt_get_kernel_cmdline_option(const char *name)
return NULL;
#ifdef TEST_PROGRAM
- path = safe_getenv("LIBMOUNT_KERNEL_CMDLINE");
+ path = getenv("LIBMOUNT_KERNEL_CMDLINE");
if (!path)
path = _PATH_PROC_CMDLINE;
#endif