* src/groupdel.c: Re-indent.

This commit is contained in:
nekral-guest 2008-12-22 22:07:12 +00:00
parent ad7a108d60
commit 9d977dba8e
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c, src/groupmod.c: Re-indent.
* src/groupadd.c, src/groupdel.c, src/groupmod.c: Re-indent.
* src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information.

View File

@ -238,7 +238,8 @@ static void open_files (void)
/* An now open the databases */
if (gr_open (O_RDWR) == 0) {
fprintf (stderr,
_("%s: cannot open %s\n"), Prog, gr_dbname ());
_("%s: cannot open %s\n"),
Prog, gr_dbname ());
SYSLOG ((LOG_WARN, "cannot open %s", gr_dbname ()));
exit (E_GRP_UPDATE);
}
@ -396,12 +397,14 @@ int main (int argc, char **argv)
char *nis_domain;
char *nis_master;
fprintf (stderr, _("%s: group '%s' is a NIS group\n"),
fprintf (stderr,
_("%s: group '%s' is a NIS group\n"),
Prog, group_name);
if (!yp_get_default_domain (&nis_domain) &&
!yp_master (nis_domain, "group.byname", &nis_master)) {
fprintf (stderr, _("%s: %s is the NIS master\n"),
fprintf (stderr,
_("%s: %s is the NIS master\n"),
Prog, nis_master);
}
exit (E_NOTFOUND);