Fix typos.

This commit is contained in:
nekral-guest 2008-08-22 02:31:55 +00:00
parent b6dc6082ab
commit 421085672b
2 changed files with 8 additions and 7 deletions

View File

@ -192,9 +192,10 @@ static void close_files (void)
gr_locked = false; gr_locked = false;
#ifdef SHADOWGRP #ifdef SHADOWGRP
if (is_shadow_grp) { if (is_shadow_grp) {
if (sgr_close () == 0)) { if (sgr_close () == 0) {
fprintf (stderr, fprintf (stderr,
_("%s: failure while writing changes to %s\n"), Prog, sgr_dbname ()); _("%s: failure while writing changes to %s\n"),
Prog, sgr_dbname ());
SYSLOG ((LOG_ERR, "failure while writing changes to %s", sgr_dbname ())); SYSLOG ((LOG_ERR, "failure while writing changes to %s", sgr_dbname ()));
fail_exit (E_GRP_UPDATE); fail_exit (E_GRP_UPDATE);
} }
@ -235,14 +236,14 @@ static void open_files (void)
} }
#ifdef SHADOWGRP #ifdef SHADOWGRP
if (is_shadow_grp) { if (is_shadow_grp) {
if (sgr_lock () == 0)) { if (sgr_lock () == 0) {
fprintf (stderr, fprintf (stderr,
_("%s: cannot lock %s; try again later.\n"), _("%s: cannot lock %s; try again later.\n"),
Prog, sgr_dbname ()); Prog, sgr_dbname ());
fail_exit (E_GRP_UPDATE); fail_exit (E_GRP_UPDATE);
} }
sgr_locked = true; sgr_locked = true;
if (sgr_open (O_RDWR) == 0)) { if (sgr_open (O_RDWR) == 0) {
fprintf (stderr, fprintf (stderr,
_("%s: cannot open %s\n"), _("%s: cannot open %s\n"),
Prog, sgr_dbname ()); Prog, sgr_dbname ());

View File

@ -304,7 +304,7 @@ static void grp_update (void)
if (is_shadow_grp && nflg && (sgr_remove (group_name) == 0)) { if (is_shadow_grp && nflg && (sgr_remove (group_name) == 0)) {
fprintf (stderr, fprintf (stderr,
_("%s: cannot remove entry '%s' from %s\n"), _("%s: cannot remove entry '%s' from %s\n"),
Prog, sgr_dbname ()); Prog, group_name, sgr_dbname ());
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
"deleting group", "deleting group",
@ -528,7 +528,7 @@ static void close_files (void)
gr_locked = false; gr_locked = false;
#ifdef SHADOWGRP #ifdef SHADOWGRP
if (is_shadow_grp) { if (is_shadow_grp) {
if (sgr_close () == 0)) { if (sgr_close () == 0) {
fprintf (stderr, fprintf (stderr,
_("%s: failure while writing changes to %s\n"), Prog, sgr_dbname ()); _("%s: failure while writing changes to %s\n"), Prog, sgr_dbname ());
SYSLOG ((LOG_ERR, "failure while writing changes to %s", sgr_dbname ())); SYSLOG ((LOG_ERR, "failure while writing changes to %s", sgr_dbname ()));
@ -545,7 +545,7 @@ static void close_files (void)
#ifdef WITH_AUDIT #ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
"unlocking gshadow file", "unlocking gshadow file",
group, AUDIT_NO_ID, 0); group_name, AUDIT_NO_ID, 0);
#endif #endif
/* continue */ /* continue */
} }