if (is_shadow_pwd) {
if (!spw_lock ()) {
fprintf (stderr, _("%s: can't lock shadow file\n"),
- Prog);
+ Prog);
pw_unlock ();
exit (1);
}
if (!spw_open (O_RDWR)) {
fprintf (stderr, _("%s: can't open shadow file\n"),
- Prog);
+ Prog);
pw_unlock ();
spw_unlock ();
exit (1);
if (is_shadow_pwd) {
if (!spw_close ()) {
fprintf (stderr,
- _("%s: error updating shadow file\n"), Prog);
+ _("%s: error updating shadow file\n"), Prog);
pw_unlock ();
exit (1);
}
*cp = '\0';
} else {
fprintf (stderr, _("%s: line %d: line too long\n"),
- Prog, line);
+ Prog, line);
errors++;
continue;
}
cp++;
} else {
fprintf (stderr,
- _("%s: line %d: missing new password\n"),
- Prog, line);
+ _("%s: line %d: missing new password\n"),
+ Prog, line);
errors++;
continue;
}
pw = pw_locate (name);
if (!pw) {
fprintf (stderr,
- _("%s: line %d: unknown user %s\n"), Prog,
- line, name);
+ _("%s: line %d: unknown user %s\n"), Prog,
+ line, name);
errors++;
continue;
}
if (!ok) {
fprintf (stderr,
- _
- ("%s: line %d: cannot update password entry\n"),
- Prog, line);
+ _
+ ("%s: line %d: cannot update password entry\n"),
+ Prog, line);
errors++;
continue;
}
*/
if (errors) {
fprintf (stderr,
- _("%s: error detected, changes ignored\n"), Prog);
+ _("%s: error detected, changes ignored\n"), Prog);
if (is_shadow_pwd)
spw_unlock ();
pw_unlock ();
return (0);
}
+