Re-indent.
This commit is contained in:
parent
908e2cbcc7
commit
05651a338e
@ -268,13 +268,13 @@ static void open_files (void)
|
|||||||
if (is_shadow_pwd) {
|
if (is_shadow_pwd) {
|
||||||
if (!spw_lock ()) {
|
if (!spw_lock ()) {
|
||||||
fprintf (stderr, _("%s: can't lock shadow file\n"),
|
fprintf (stderr, _("%s: can't lock shadow file\n"),
|
||||||
Prog);
|
Prog);
|
||||||
pw_unlock ();
|
pw_unlock ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
if (!spw_open (O_RDWR)) {
|
if (!spw_open (O_RDWR)) {
|
||||||
fprintf (stderr, _("%s: can't open shadow file\n"),
|
fprintf (stderr, _("%s: can't open shadow file\n"),
|
||||||
Prog);
|
Prog);
|
||||||
pw_unlock ();
|
pw_unlock ();
|
||||||
spw_unlock ();
|
spw_unlock ();
|
||||||
exit (1);
|
exit (1);
|
||||||
@ -290,7 +290,7 @@ static void close_files (void)
|
|||||||
if (is_shadow_pwd) {
|
if (is_shadow_pwd) {
|
||||||
if (!spw_close ()) {
|
if (!spw_close ()) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: error updating shadow file\n"), Prog);
|
_("%s: error updating shadow file\n"), Prog);
|
||||||
pw_unlock ();
|
pw_unlock ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
@ -351,7 +351,7 @@ int main (int argc, char **argv)
|
|||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
} else {
|
} else {
|
||||||
fprintf (stderr, _("%s: line %d: line too long\n"),
|
fprintf (stderr, _("%s: line %d: line too long\n"),
|
||||||
Prog, line);
|
Prog, line);
|
||||||
errors++;
|
errors++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -372,8 +372,8 @@ int main (int argc, char **argv)
|
|||||||
cp++;
|
cp++;
|
||||||
} else {
|
} else {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: line %d: missing new password\n"),
|
_("%s: line %d: missing new password\n"),
|
||||||
Prog, line);
|
Prog, line);
|
||||||
errors++;
|
errors++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -400,8 +400,8 @@ int main (int argc, char **argv)
|
|||||||
pw = pw_locate (name);
|
pw = pw_locate (name);
|
||||||
if (!pw) {
|
if (!pw) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: line %d: unknown user %s\n"), Prog,
|
_("%s: line %d: unknown user %s\n"), Prog,
|
||||||
line, name);
|
line, name);
|
||||||
errors++;
|
errors++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -436,9 +436,9 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_
|
_
|
||||||
("%s: line %d: cannot update password entry\n"),
|
("%s: line %d: cannot update password entry\n"),
|
||||||
Prog, line);
|
Prog, line);
|
||||||
errors++;
|
errors++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -453,7 +453,7 @@ int main (int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
if (errors) {
|
if (errors) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: error detected, changes ignored\n"), Prog);
|
_("%s: error detected, changes ignored\n"), Prog);
|
||||||
if (is_shadow_pwd)
|
if (is_shadow_pwd)
|
||||||
spw_unlock ();
|
spw_unlock ();
|
||||||
pw_unlock ();
|
pw_unlock ();
|
||||||
@ -470,3 +470,4 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user