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