* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c, src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c, src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c: In case of a lock failure, indicate to the user that she can try again later. Do not log to syslog.
This commit is contained in:
@@ -83,7 +83,9 @@ int main (int argc, char **argv)
|
||||
(void) textdomain (PACKAGE);
|
||||
|
||||
if (gr_lock () == 0) {
|
||||
fprintf (stderr, _("%s: cannot lock %s\n"), Prog, gr_dbname ());
|
||||
fprintf (stderr,
|
||||
_("%s: cannot lock %s; try again later.\n"),
|
||||
Prog, gr_dbname ());
|
||||
fail_exit (5);
|
||||
}
|
||||
group_locked = true;
|
||||
@@ -93,7 +95,9 @@ int main (int argc, char **argv)
|
||||
}
|
||||
|
||||
if (sgr_lock () == 0) {
|
||||
fprintf (stderr, _("%s: cannot lock %s\n"), Prog, sgr_dbname ());
|
||||
fprintf (stderr,
|
||||
_("%s: cannot lock %s; try again later.\n"),
|
||||
Prog, sgr_dbname ());
|
||||
fail_exit (5);
|
||||
}
|
||||
gshadow_locked = true;
|
||||
|
Reference in New Issue
Block a user