libmount: add sanitize_env() to mount(8) sample

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2011-11-29 17:36:39 +01:00
parent 2492f71341
commit 6189ace369
2 changed files with 4 additions and 0 deletions

View File

@ -5,3 +5,5 @@ AM_LDFLAGS += $(ul_libmount_la)
noinst_PROGRAMS = mount
mount_SOURCES = mount.c $(top_srcdir)/lib/env.c

View File

@ -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);