libmount: add sanitize_env() to mount(8) sample
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
2492f71341
commit
6189ace369
|
@ -5,3 +5,5 @@ AM_LDFLAGS += $(ul_libmount_la)
|
||||||
|
|
||||||
noinst_PROGRAMS = mount
|
noinst_PROGRAMS = mount
|
||||||
|
|
||||||
|
mount_SOURCES = mount.c $(top_srcdir)/lib/env.c
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "c.h"
|
#include "c.h"
|
||||||
|
#include "env.h"
|
||||||
|
|
||||||
/*** TODO: DOCS:
|
/*** TODO: DOCS:
|
||||||
*
|
*
|
||||||
|
@ -305,6 +306,7 @@ int main(int argc, char **argv)
|
||||||
{ NULL, 0, 0, 0 }
|
{ NULL, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sanitize_env();
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
|
|
Loading…
Reference in New Issue