summaryrefslogtreecommitdiffstats
path: root/src/chfn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chfn.c')
-rw-r--r--src/chfn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chfn.c b/src/chfn.c
index 2fd81d3d..213b0bb7 100644
--- a/src/chfn.c
+++ b/src/chfn.c
@@ -616,10 +616,12 @@ int main (int argc, char **argv)
char new_gecos[BUFSIZ]; /* buffer for new GECOS fields */
char *user;
+ sanitize_env ();
+ check_fds ();
+
log_set_progname(Prog);
log_set_logfd(stderr);
- sanitize_env ();
(void) setlocale (LC_ALL, "");
(void) bindtextdomain (PACKAGE, LOCALEDIR);
(void) textdomain (PACKAGE);