Re-indent.
This commit is contained in:
16
src/pwck.c
16
src/pwck.c
@@ -369,8 +369,7 @@ static void check_pw_file (int *errors, int *changed)
|
||||
/*
|
||||
* Home directory doesn't exist, give a warning
|
||||
*/
|
||||
printf (_
|
||||
("user %s: directory %s does not exist\n"),
|
||||
printf (_("user %s: directory %s does not exist\n"),
|
||||
pwd->pw_name, pwd->pw_dir);
|
||||
*errors += 1;
|
||||
}
|
||||
@@ -396,8 +395,7 @@ static void check_pw_file (int *errors, int *changed)
|
||||
if (is_shadow) {
|
||||
spw = (struct spwd *) spw_locate (pwd->pw_name);
|
||||
if (spw == NULL) {
|
||||
printf (_
|
||||
("no matching password file entry in %s\n"),
|
||||
printf (_("no matching password file entry in %s\n"),
|
||||
spw_file);
|
||||
printf (_("add user '%s' in %s? "),
|
||||
pwd->pw_name, spw_file);
|
||||
@@ -423,8 +421,7 @@ static void check_pw_file (int *errors, int *changed)
|
||||
|
||||
if (!spw_update (&sp)) {
|
||||
fprintf (stderr,
|
||||
_
|
||||
("%s: can't update shadow entry for %s\n"),
|
||||
_("%s: can't update shadow entry for %s\n"),
|
||||
Prog, sp.sp_namp);
|
||||
exit (E_CANTUPDATE);
|
||||
}
|
||||
@@ -433,8 +430,7 @@ static void check_pw_file (int *errors, int *changed)
|
||||
pw.pw_passwd = SHADOW_PASSWD_STRING; /* XXX warning: const */
|
||||
if (!pw_update (&pw)) {
|
||||
fprintf (stderr,
|
||||
_
|
||||
("%s: can't update passwd entry for %s\n"),
|
||||
_("%s: can't update passwd entry for %s\n"),
|
||||
Prog, pw.pw_name);
|
||||
exit (E_CANTUPDATE);
|
||||
}
|
||||
@@ -571,8 +567,7 @@ static void check_spw_file (int *errors, int *changed)
|
||||
* Warn if last password change in the future. --marekm
|
||||
*/
|
||||
if (!quiet && spw->sp_lstchg > time ((time_t *) 0) / SCALE) {
|
||||
printf (_
|
||||
("user %s: last password change in the future\n"),
|
||||
printf (_("user %s: last password change in the future\n"),
|
||||
spw->sp_namp);
|
||||
*errors += 1;
|
||||
}
|
||||
@@ -631,3 +626,4 @@ int main (int argc, char **argv)
|
||||
closelog ();
|
||||
exit (errors ? E_BADENTRY : E_OKAY);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user