diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-23 13:30:28 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-24 15:10:04 +0100 |
commit | 0125fd0fcbbc2d54e6c5b50ee8e97f1c7c4b4173 (patch) | |
tree | d365949bb56fc4286c2a3e49fac7a0ae6415cb9c /src | |
parent | a382db6a04dd05c1acc669a7769fb2297b237500 (diff) | |
download | coreutils-0125fd0fcbbc2d54e6c5b50ee8e97f1c7c4b4173.tar.xz |
setuidgid.c: Normalize leading white space: no more TABs
Diffstat (limited to 'src')
-rw-r--r-- | src/setuidgid.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/setuidgid.c b/src/setuidgid.c index 884c89ac6..71198a4bf 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -45,14 +45,14 @@ usage (int status) { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ Usage: %s USERNAME COMMAND [ARGUMENT]...\n\ or: %s OPTION\n\ "), - program_name, program_name); + program_name, program_name); fputs (_("\ Drop any supplemental groups, assume the user-ID and group-ID of\n\ @@ -86,7 +86,7 @@ main (int argc, char **argv) atexit (close_stdout); parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, - usage, AUTHORS, (char const *) NULL); + usage, AUTHORS, (char const *) NULL); { int c; while ((c = getopt_long (argc, argv, "+g:", NULL, NULL)) != -1) @@ -106,7 +106,7 @@ main (int argc, char **argv) /* FIXME: Integer overflow */ gids[gids_count++] = strtoul (ptr, &ptr, 10); - + if (*ptr != '\0' && *ptr++ != ',') { error (0, 0, _("invalid argument %s"), quote (optarg)); @@ -115,7 +115,7 @@ main (int argc, char **argv) } break; } - + default: usage (SETUIDGID_FAILURE); } @@ -125,9 +125,9 @@ main (int argc, char **argv) if (argc <= optind + 1) { if (argc < optind + 1) - error (0, 0, _("missing operand")); + error (0, 0, _("missing operand")); else - error (0, 0, _("missing operand after %s"), quote (argv[optind])); + error (0, 0, _("missing operand after %s"), quote (argv[optind])); usage (SETUIDGID_FAILURE); } @@ -181,11 +181,11 @@ main (int argc, char **argv) if (setgid (gids[0])) error (SETUIDGID_FAILURE, errno, - _("cannot set group-ID to %lu"), (unsigned long int) gids[0]); + _("cannot set group-ID to %lu"), (unsigned long int) gids[0]); if (setuid (uid)) error (SETUIDGID_FAILURE, errno, - _("cannot set user-ID to %lu"), (unsigned long int) uid); + _("cannot set user-ID to %lu"), (unsigned long int) uid); { char **cmd = argv + optind + 1; @@ -197,3 +197,9 @@ main (int argc, char **argv) exit (exit_status); } } + +/* + * Local variables: + * indent-tabs-mode: nil + * End: + */ |