diff options
author | Cy Schubert <cy@FreeBSD.org> | 2010-04-26 03:48:43 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2010-04-26 03:48:43 +0000 |
commit | 1a0ed7c73eff5d7b085648d8e413ef837a6de451 (patch) | |
tree | 0a745f7a94e3533610d57f4cf6976f366763d59d /security/krb5/files/patch-ay | |
parent | This forced commit documents the repocopy of the now defunct krb5-17 port (diff) |
Welcome the new krb5-1.8.1. Significant changes include the removal of
the MIT KRB5 applications (now in a separate tarball and port).
Notes
Notes:
svn path=/head/; revision=253264
Diffstat (limited to 'security/krb5/files/patch-ay')
-rw-r--r-- | security/krb5/files/patch-ay | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/security/krb5/files/patch-ay b/security/krb5/files/patch-ay deleted file mode 100644 index a2141724855b..000000000000 --- a/security/krb5/files/patch-ay +++ /dev/null @@ -1,51 +0,0 @@ ---- appl/libpty/getpty.c.orig Wed Jan 9 14:28:37 2002 -+++ appl/libpty/getpty.c Thu Jan 10 21:30:40 2002 -@@ -24,14 +24,27 @@ - #include "libpty.h" - #include "pty-int.h" - #include "k5-platform.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++) { - snprintf(slavebuf,sizeof(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; - |