diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-08-15 15:24:08 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-08-15 15:24:08 +0000 |
| commit | bf1bf891632eb3e52bfa84f01e8f11609b9956ee (patch) | |
| tree | d5abebf2dd0d6606c4dc8a2080da5c289e1dc070 /usr.bin | |
| parent | d143364652f974656b650b58f34362cbdf4c8ebe (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/su/su.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 79002df9589e..a45291a22da7 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -93,8 +93,6 @@ static const char rcsid[] = } \ } while (0) -#define ARGSTR "-flmc:" - enum tristate { UNSET, YES, NO }; static pam_handle_t *pamh = NULL; @@ -129,7 +127,7 @@ main(int argc, char *argv[]) user = "root"; iscsh = UNSET; - while ((ch = getopt(argc, argv, ARGSTR)) != -1) + while ((ch = getopt(argc, argv, "-flmc:")) != -1) switch ((char)ch) { case 'f': fastlogin = 1; @@ -442,7 +440,8 @@ static void usage(void) { - (void)fprintf(stderr, "usage: su [-] [-flm] [-c class] [login [args]]"); + (void)fprintf(stderr, + "usage: su [-] [-flm] [-c class] [login [args]]\n"); exit(1); } |
