[9225] in Athena Bugs

home help back first fref pref prev next nref lref last post

/source/athena/athena.lib/kerberos/appl/bsd/login.c

daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Thu Apr 23 15:27:25 1992

From: brlewis@Athena.MIT.EDU
Date: Thu, 23 Apr 92 15:27:15 -0400
To: bugs@Athena.MIT.EDU

There's no reason why the -f option can't be used in conjunction with
any of the other options.  This patch will make login.krb work right
with kerberized telnetd.

*** /source/athena/athena.lib/kerberos/appl/bsd/login.c	Sun Jul  7 13:02:41 1991
--- login.c	Mon Apr 13 17:00:45 1992
***************
*** 185,191 ****
  #define EXCL_TEST if (rflag || kflag || Kflag || eflag || \
  			    fflag || hflag) { \
  				fprintf(stderr, \
! 				    "login: only one of -r, -k, -K, -e, -h and -f allowed.\n"); \
  				exit(1);\
  			}
  main(argc, argv)
--- 185,191 ----
  #define EXCL_TEST if (rflag || kflag || Kflag || eflag || \
  			    fflag || hflag) { \
  				fprintf(stderr, \
! 				    "login: only one of -r, -k, -K, -e and -h allowed.\n"); \
  				exit(1);\
  			}
  main(argc, argv)
***************
*** 239,245 ****
  	while ((ch = getopt(argc, argv, "feh:pr:k:K:")) != EOF)
  		switch (ch) {
  		case 'f':
- 			EXCL_TEST;
  			fflag = 1;
  			break;
  		case 'h':
--- 239,244 ----

home help back first fref pref prev next nref lref last post