Re-indent.

This commit is contained in:
nekral-guest 2007-12-31 15:32:15 +00:00
parent 4c9686df0c
commit d6cabcde78

View File

@ -83,11 +83,11 @@ static void update_shell (const char *user, char *loginsh);
static void usage (void) static void usage (void)
{ {
fprintf (stderr, _("Usage: chsh [options] [LOGIN]\n" fprintf (stderr, _("Usage: chsh [options] [LOGIN]\n"
"\n" "\n"
"Options:\n" "Options:\n"
" -h, --help display this help message and exit\n" " -h, --help display this help message and exit\n"
" -s, --shell SHELL new login shell for the user account\n" " -s, --shell SHELL new login shell for the user account\n"
"\n")); "\n"));
exit (E_USAGE); exit (E_USAGE);
} }
@ -356,8 +356,8 @@ static void update_shell (const char *user, char *loginsh)
SYSLOG ((LOG_WARN, "can't lock /etc/passwd")); SYSLOG ((LOG_WARN, "can't lock /etc/passwd"));
closelog (); closelog ();
fprintf (stderr, fprintf (stderr,
_ _
("Cannot lock the password file; try again later.\n")); ("Cannot lock the password file; try again later.\n"));
exit (1); exit (1);
} }
if (pw_open (O_RDWR) == 0) { if (pw_open (O_RDWR) == 0) {
@ -378,7 +378,7 @@ static void update_shell (const char *user, char *loginsh)
if (NULL == pw) { if (NULL == pw) {
pw_unlock (); pw_unlock ();
fprintf (stderr, fprintf (stderr,
_("%s: %s not found in /etc/passwd\n"), Prog, user); _("%s: %s not found in /etc/passwd\n"), Prog, user);
exit (1); exit (1);
} }
@ -461,16 +461,16 @@ int main (int argc, char **argv)
pw = xgetpwnam (user); pw = xgetpwnam (user);
if (!pw) { if (!pw) {
fprintf (stderr, fprintf (stderr,
_("%s: unknown user %s\n"), Prog, user); _("%s: unknown user %s\n"), Prog, user);
exit (1); exit (1);
} }
} else { } else {
pw = get_my_pwent (); pw = get_my_pwent ();
if (!pw) { if (!pw) {
fprintf (stderr, fprintf (stderr,
_ _
("%s: Cannot determine your user name.\n"), ("%s: Cannot determine your user name.\n"),
Prog); Prog);
exit (1); exit (1);
} }
user = xstrdup (pw->pw_name); user = xstrdup (pw->pw_name);
@ -485,15 +485,15 @@ int main (int argc, char **argv)
char *nis_master; char *nis_master;
fprintf (stderr, fprintf (stderr,
_("%s: cannot change user '%s' on NIS client.\n"), _("%s: cannot change user '%s' on NIS client.\n"),
Prog, user); Prog, user);
if (!yp_get_default_domain (&nis_domain) && if (!yp_get_default_domain (&nis_domain) &&
!yp_master (nis_domain, "passwd.byname", &nis_master)) { !yp_master (nis_domain, "passwd.byname", &nis_master)) {
fprintf (stderr, fprintf (stderr,
_ _
("%s: '%s' is the NIS master for this client.\n"), ("%s: '%s' is the NIS master for this client.\n"),
Prog, nis_master); Prog, nis_master);
} }
exit (1); exit (1);
} }