version 1.36, 2001/05/29 21:40:36 |
version 1.37, 2001/05/31 17:34:17 |
|
|
#endif |
#endif |
#include <bsd_auth.h> |
#include <bsd_auth.h> |
|
|
#define ARGSTR "-a:c:fKlm" |
|
|
|
char *ontty __P((void)); |
char *ontty __P((void)); |
int chshell __P((char *)); |
int chshell __P((char *)); |
void usage __P((void)); |
void usage __P((void)); |
|
|
iscsh = UNSET; |
iscsh = UNSET; |
class = shell = style = NULL; |
class = shell = style = NULL; |
asme = asthem = fastlogin = 0; |
asme = asthem = fastlogin = 0; |
while ((ch = getopt(argc, argv, ARGSTR)) != -1) |
while ((ch = getopt(argc, argv, "-a:c:fKlm")) != -1) |
switch(ch) { |
switch(ch) { |
case 'a': |
case 'a': |
if (style) |
if (style) |
|
|
{ |
{ |
extern char *__progname; |
extern char *__progname; |
|
|
(void)fprintf(stderr, "usage: %s [%s] [-a auth-type] %s ", |
fprintf(stderr, "usage: %s [-fKlm] [-a auth-type] %s ", __progname, |
"[-c login-class] [login [argument ...]]\n", __progname, ARGSTR); |
ARGSTR, "[-c login-class] [login [shell arguments]]\n"); |
exit(1); |
exit(1); |
} |
} |
|
|