diff options
-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); |