diff options
Diffstat (limited to 'server/tools/sss_groupmod.c')
-rw-r--r-- | server/tools/sss_groupmod.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tools/sss_groupmod.c b/server/tools/sss_groupmod.c index cc7665d9..30f8e54b 100644 --- a/server/tools/sss_groupmod.c +++ b/server/tools/sss_groupmod.c @@ -27,6 +27,7 @@ #include <grp.h> #include <sys/types.h> #include <sys/wait.h> +#include <unistd.h> #include "util/util.h" #include "db/sysdb.h" @@ -349,6 +350,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))); |