* src/chfn.c: Do not exit on pw_unlock failures.
* src/grpconv.c, src/grpunconv.c, src/pwconv.c, src/pwunconv.c, src/vipw.c: Open syslog with the right identification name. * src/vipw.c: Log unlock errors to syslog. * src/vipw.c: Log edits to syslog. * src/chage.c, src/chfn.c, src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmod.c, src/grpconv.c, src/grpunconv.c, src/passwd.c, src/pwck.c, src/pwunconv.c, src/useradd.c, src/usermod.c: Harmonize the syslog levels. Failure to close or unlock are errors. Failure to open files are warnings.
This commit is contained in:
@@ -636,7 +636,7 @@ static void update_group (void)
|
||||
fprintf (stderr,
|
||||
_("%s: error adding new entry '%s' in %s\n"),
|
||||
Prog, ngrp->gr_name, gr_dbname ());
|
||||
SYSLOG ((LOG_ERR, "error adding new entry '%s' in %s", ngrp->gr_name, gr_dbname ()));
|
||||
SYSLOG ((LOG_WARN, "error adding new entry '%s' in %s", ngrp->gr_name, gr_dbname ()));
|
||||
fail_exit (E_GRP_UPDATE);
|
||||
}
|
||||
}
|
||||
@@ -755,7 +755,7 @@ static void update_gshadow (void)
|
||||
fprintf (stderr,
|
||||
_("%s: error adding new entry '%s' in '%s\n"),
|
||||
Prog, nsgrp->sg_name, sgr_dbname ());
|
||||
SYSLOG ((LOG_ERR, "error adding new entry '%s' in %s",
|
||||
SYSLOG ((LOG_WARN, "error adding new entry '%s' in %s",
|
||||
nsgrp->sg_name, sgr_dbname ()));
|
||||
fail_exit (E_GRP_UPDATE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user