diff options
author | Karel Zak | 2011-11-29 17:36:39 +0100 |
---|---|---|
committer | Karel Zak | 2011-11-29 17:36:39 +0100 |
commit | 6189ace369dc9eaa8e8129c8bcfb62b337a224f1 (patch) | |
tree | 8f33981f306ec7cd53482dcdc209aa41be9b7279 /libmount/samples | |
parent | libmount: remove magic constatnt from mount(8) (diff) | |
download | kernel-qcow2-util-linux-6189ace369dc9eaa8e8129c8bcfb62b337a224f1.tar.gz kernel-qcow2-util-linux-6189ace369dc9eaa8e8129c8bcfb62b337a224f1.tar.xz kernel-qcow2-util-linux-6189ace369dc9eaa8e8129c8bcfb62b337a224f1.zip |
libmount: add sanitize_env() to mount(8) sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/samples')
-rw-r--r-- | libmount/samples/Makefile.am | 2 | ||||
-rw-r--r-- | libmount/samples/mount.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libmount/samples/Makefile.am b/libmount/samples/Makefile.am index b0c655f1a..9478561e1 100644 --- a/libmount/samples/Makefile.am +++ b/libmount/samples/Makefile.am @@ -5,3 +5,5 @@ AM_LDFLAGS += $(ul_libmount_la) noinst_PROGRAMS = mount +mount_SOURCES = mount.c $(top_srcdir)/lib/env.c + diff --git a/libmount/samples/mount.c b/libmount/samples/mount.c index c65ec925b..6f5dbda99 100644 --- a/libmount/samples/mount.c +++ b/libmount/samples/mount.c @@ -31,6 +31,7 @@ #include "nls.h" #include "c.h" +#include "env.h" /*** TODO: DOCS: * @@ -305,6 +306,7 @@ int main(int argc, char **argv) { NULL, 0, 0, 0 } }; + sanitize_env(); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); |