diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-07 22:54:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-07 22:54:14 +0000 |
commit | b3915edb359fbd1a017942ebcaeed0eef148d746 (patch) | |
tree | 91e1a86588c5528166e81bfb3d50987011c3025b /usr.bin | |
parent | b86c4981cfede412b0ee9e69fe56fc6d21f65679 (diff) |
Repair -a flag parsing which I broke in revision 1.47.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/su/su.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 18a6c80acda..9559ca769a9 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -1,4 +1,4 @@ -/* $OpenBSD: su.c,v 1.48 2002/11/08 23:20:19 millert Exp $ */ +/* $OpenBSD: su.c,v 1.49 2002/12/07 22:54:13 millert Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -43,7 +43,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91"; #else -static const char rcsid[] = "$OpenBSD: su.c,v 1.48 2002/11/08 23:20:19 millert Exp $"; +static const char rcsid[] = "$OpenBSD: su.c,v 1.49 2002/12/07 22:54:13 millert Exp $"; #endif #endif /* not lint */ @@ -181,9 +181,8 @@ main(int argc, char **argv) /* style may be specified as part of the username */ if ((p = strchr(user, ':')) != NULL) { *p++ = '\0'; - style = p; - } else - style = NULL; /* XXX overrides -a flag */ + style = p; /* XXX overrides -a flag */ + } /* * Clean and setup our current authentication session. |