From 421085672ba2c9ce92ded17abb3d7ae66c25b97a Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 22 Aug 2008 02:31:55 +0000 Subject: [PATCH] Fix typos. --- src/groupdel.c | 9 +++++---- src/groupmod.c | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/groupdel.c b/src/groupdel.c index 9a2a7164..90649eb9 100644 --- a/src/groupdel.c +++ b/src/groupdel.c @@ -192,9 +192,10 @@ static void close_files (void) gr_locked = false; #ifdef SHADOWGRP if (is_shadow_grp) { - if (sgr_close () == 0)) { + if (sgr_close () == 0) { 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 ())); fail_exit (E_GRP_UPDATE); } @@ -235,14 +236,14 @@ static void open_files (void) } #ifdef SHADOWGRP if (is_shadow_grp) { - if (sgr_lock () == 0)) { + if (sgr_lock () == 0) { fprintf (stderr, _("%s: cannot lock %s; try again later.\n"), Prog, sgr_dbname ()); fail_exit (E_GRP_UPDATE); } sgr_locked = true; - if (sgr_open (O_RDWR) == 0)) { + if (sgr_open (O_RDWR) == 0) { fprintf (stderr, _("%s: cannot open %s\n"), Prog, sgr_dbname ()); diff --git a/src/groupmod.c b/src/groupmod.c index fe41f33f..c23bc5e7 100644 --- a/src/groupmod.c +++ b/src/groupmod.c @@ -304,7 +304,7 @@ static void grp_update (void) if (is_shadow_grp && nflg && (sgr_remove (group_name) == 0)) { fprintf (stderr, _("%s: cannot remove entry '%s' from %s\n"), - Prog, sgr_dbname ()); + Prog, group_name, sgr_dbname ()); #ifdef WITH_AUDIT audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "deleting group", @@ -528,7 +528,7 @@ static void close_files (void) gr_locked = false; #ifdef SHADOWGRP if (is_shadow_grp) { - if (sgr_close () == 0)) { + if (sgr_close () == 0) { fprintf (stderr, _("%s: failure while writing changes to %s\n"), Prog, 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 audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "unlocking gshadow file", - group, AUDIT_NO_ID, 0); + group_name, AUDIT_NO_ID, 0); #endif /* continue */ }