[3752] in Kerberos
Bug fix in KRB5b4pl2 under Irix 5.2
daemon@ATHENA.MIT.EDU (Douglas W. O'Neal)
Wed Aug 24 12:26:29 1994
To: kerberos@MIT.EDU
Date: 24 Aug 1994 15:15:06 GMT
From: doug@grinch.hcf.jhu.edu (Douglas W. O'Neal)
The distribution of krb5b4pl2 does not include an address for patches to
be sent to but I have come across two problems (so far) in building it
under Irix 5.2. In the src/appl/bsd directory, two files need changing.
The pty allocation under Irix has changed (it is simpler) and getopt should
return an int on all platforms.
Doug
--
Doug O'Neal, Distributed Systems Programmer, Johns Hopkins University
doug@jhuvms.bitnet, doug@jhuvms.hcf.jhu.edu, mimsy!aplcen!jhunix!doug
Hypothetical questions get hypothetical answers - Joan Baez
*** krlogind.c.orig Wed Aug 24 11:01:52 1994
--- krlogind.c Wed Aug 24 11:01:52 1994
***************
*** 1397,1400 ****
--- 1397,1407 ----
#else /* NOT STREAMS */
+ #ifdef sgi
+ char *s;
+ s = _getpty(fd, O_RDWR, 0700, 0);
+ strncpy(slave,s,MAXPATHLEN);
+ if (*fd > 0) return(0);
+ return (1);
+ #else
for (c = 'p'; c <= 's'; c++) {
sprintf(slave,"/dev/ptyXX");
***************
*** 1414,1417 ****
--- 1421,1425 ----
slave[strlen("/dev/")] = 't';
return(0);
+ #endif /* NOT sgi */
#endif /* STREAMS */
}
*** krshd.c.orig Wed Aug 24 11:03:32 1994
--- krshd.c Wed Aug 24 11:03:41 1994
***************
*** 236,240 ****
extern int opterr, optind;
extern char *optarg;
! char *options, ch;
int i;
int fd;
--- 236,241 ----
extern int opterr, optind;
extern char *optarg;
! char *options;
! int ch;
int i;
int fd;