head	1.10;
access;
symbols
	RELEASE_5_1_0:1.7
	RELEASE_4_8_0:1.7
	RELEASE_5_0_0:1.7
	RELEASE_4_7_0:1.5;
locks; strict;
comment	@# @;


1.10
date	2004.02.28.21.37.18;	author cy;	state dead;
branches;
next	1.9;

1.9
date	2004.01.26.04.10.56;	author cy;	state Exp;
branches;
next	1.8;

1.8
date	2003.08.08.01.42.00;	author cy;	state dead;
branches;
next	1.7;

1.7
date	2002.11.05.06.51.28;	author cy;	state Exp;
branches;
next	1.6;

1.6
date	2002.10.15.04.25.18;	author cy;	state dead;
branches;
next	1.5;

1.5
date	2002.08.20.21.25.23;	author cy;	state Exp;
branches;
next	1.4;

1.4
date	2002.05.14.21.35.13;	author cy;	state dead;
branches;
next	1.3;

1.3
date	2002.04.13.16.33.14;	author cy;	state Exp;
branches;
next	1.2;

1.2
date	2002.03.08.14.38.43;	author cy;	state dead;
branches;
next	1.1;

1.1
date	2002.02.10.22.45.28;	author cy;	state Exp;
branches;
next	;


desc
@@


1.10
log
@MIT KRB5 1.3.2 has been released. Remove the beta.
@
text
@--- util/pty/getpty.c.orig	Wed Jan  9 14:28:37 2002
+++ util/pty/getpty.c	Thu Jan 10 21:30:40 2002
@@@@ -24,13 +24,26 @@@@
 #include "libpty.h"
 #include "pty-int.h"
 
+#ifdef __FreeBSD__
+#define PTYCHARS1	"pqrsPQRS"
+#define PTYCHARS2	"0123456789abcdefghijklmnopqrstuv"
+#endif
+
+#ifndef PTYCHARS1
+#define PTYCHARS1	"pqrstuvwxyzPQRST"
+#endif
+
+#ifndef PTYCHARS2
+#define PTYCHARS2	"0123456789abcdef"
+#endif
+
 long
 ptyint_getpty_ext(int *fd, char *slave, int slavelength, int do_grantpt)
 {
+    int ptynum;
+    char *cp1, *cp2;
 #if !defined(HAVE__GETPTY) && !defined(HAVE_OPENPTY)
-    char *cp;
     char *p;
-    int i,ptynum;
     struct stat stb;
     char slavebuf[1024];
 #endif
@@@@ -115,14 +128,14 @@@@
 	strncpy(slave, slavebuf, slavelength);
 	return 0;
     } else {
-    	for (cp = "pqrstuvwxyzPQRST";*cp; cp++) {
+    	for (cp1 = PTYCHARS1; *cp1 != '\0'; cp1++) {
 	    sprintf(slavebuf,"/dev/ptyXX");
-	    slavebuf[sizeof("/dev/pty") - 1] = *cp;
+	    slavebuf[sizeof("/dev/pty") - 1] = *cp1;
 	    slavebuf[sizeof("/dev/ptyp") - 1] = '0';
 	    if (stat(slavebuf, &stb) < 0)
 		break;
-	    for (i = 0; i < 16; i++) {
-		slavebuf[sizeof("/dev/ptyp") - 1] = "0123456789abcdef"[i];
+	    for (cp2 = PTYCHARS2; *cp2 != '\0'; cp2++) {
+		slavebuf[sizeof("/dev/ptyp") - 1] = *cp2;
 		*fd = open(slavebuf, O_RDWR);
 		if (*fd < 0) continue;
 
@


1.9
log
@Brand new MIT KRB5 beta.
@
text
@@


1.8
log
@MIT KRB5 1.3 has been released. Remove the beta.
@
text
@@


1.7
log
@New MIT Kerberos V beta, version 1.2.7-beta1.
@
text
@@


1.6
log
@MIT KRB5 1.2.6 has been GA for some time. Remove the beta.
@
text
@@


1.5
log
@New MIT Kerberos V beta, V 1.2.6-beta1.
@
text
@@


1.4
log
@Removing krb5-beta port.  As krb5-1.2.5 went GA 14 days ago, krb5-beta
is not relevant at this time.
@
text
@@


1.3
log
@New MIT Kerberos V beta, V 1.2.5-beta1.
@
text
@@


1.2
log
@Removing krb5-beta port.  Krb5-beta is a "test" port to allow FreeBSD users
the opportunity to use/test the upcoming krb5 before it is released.
Krb5-1.2.4 was released over a week ago superceeding this port.  This port
will be resurrected when a new krb5-beta becomes available.
@
text
@@


1.1
log
@New port, Kerberos V 1.2.4-beta1.
@
text
@@

