[767] in Kerberos-V5-bugs
Other telnet changes for the Alpha
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Thu Sep 22 11:57:41 1994
From: epeisach@MIT.EDU
Date: Thu, 22 Sep 1994 11:57:34 -0400
To: krb5-bugs@MIT.EDU
Cc: tytso@MIT.EDU
In telnet
for auth_enable/disable, a char * is necessary - not an int. On systems
where sizoef int = sizeof char * all works. On a 64 bit machine, it
doesn't. (auth_onoff requires a char * already)
Ezra
===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/telnet/libtelnet/auth.c,v
retrieving revision 5.5
diff -c -r5.5 auth.c
*** 5.5 1994/08/18 21:06:45
--- auth.c 1994/09/22 15:05:58
***************
*** 260,266 ****
int
auth_enable(type)
! int type;
{
return(auth_onoff(type, 1));
}
--- 260,266 ----
int
auth_enable(type)
! char *type;
{
return(auth_onoff(type, 1));
}
***************
*** 267,273 ****
int
auth_disable(type)
! int type;
{
return(auth_onoff(type, 0));
}
--- 267,273 ----
int
auth_disable(type)
! char *type;
{
return(auth_onoff(type, 0));
}
===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/telnet/telnet/commands.c,v
retrieving revision 5.14
diff -c -r5.14 commands.c
*** 5.14 1994/08/18 21:07:37
--- commands.c 1994/09/22 15:05:03
***************
*** 1919,1926 ****
};
extern int
! auth_enable P((int)),
! auth_disable P((int)),
auth_status P((void));
static int
auth_help P((void));
--- 1919,1926 ----
};
extern int
! auth_enable P((char *)),
! auth_disable P((char *)),
auth_status P((void));
static int
auth_help P((void));
***************
*** 1959,1964 ****
--- 1959,1970 ----
{
struct authlist *c;
+ if (argc < 2) {
+ fprintf(stderr,
+ "Need an argument to 'auth' command. 'auth ?' for help.\n");
+ return 0;
+ }
+
c = (struct authlist *)
genget(argv[1], (char **) AuthList, sizeof(struct authlist));
if (c == 0) {
***************
*** 2058,2063 ****
--- 2064,2075 ----
char *argv[];
{
struct encryptlist *c;
+
+ if (argc < 2) {
+ fprintf(stderr,
+ "Need an argument to 'encrypt' command. 'encrypt ?' for help.\n");
+ return 0;
+ }
c = (struct encryptlist *)
genget(argv[1], (char **) EncryptList, sizeof(struct encryptlist));