diff options
Diffstat (limited to 'server/tools/sss_groupadd.c')
-rw-r--r-- | server/tools/sss_groupadd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c index ea732016..70505671 100644 --- a/server/tools/sss_groupadd.c +++ b/server/tools/sss_groupadd.c @@ -24,6 +24,7 @@ #include <talloc.h> #include <popt.h> #include <errno.h> +#include <unistd.h> #include <sys/types.h> #include <sys/wait.h> @@ -176,6 +177,15 @@ int main(int argc, const char **argv) debug_prg_name = argv[0]; + ret = set_locale(); + if (ret != EOK) { + DEBUG(1, ("set_locale failed (%d): %s\n", ret, strerror(ret))); + ERROR("Error setting the locale\n"); + ret = EXIT_FAILURE; + goto fini; + } + CHECK_ROOT(ret, debug_prg_name); + ret = init_sss_tools(&ctx); if(ret != EOK) { DEBUG(1, ("init_sss_tools failed (%d): %s\n", ret, strerror(ret))); |