diff options
author | Rene Ladan <rene@FreeBSD.org> | 2023-10-01 11:33:38 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2023-10-01 11:33:38 +0200 |
commit | 055f9a3cd96d8358eee345fb279dd49183102cbc (patch) | |
tree | d340dbc3453abab555389b514002bd992185cc27 /security/krb5-appl/files/patch-libpty__getpty.c | |
parent | x11/antimicro: Remove expired port (diff) |
security/krb5-appl: Remove expired port
2023-10-01 security/krb5-appl: Desupported by upstream, uses old ciphers
Diffstat (limited to 'security/krb5-appl/files/patch-libpty__getpty.c')
-rw-r--r-- | security/krb5-appl/files/patch-libpty__getpty.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/security/krb5-appl/files/patch-libpty__getpty.c b/security/krb5-appl/files/patch-libpty__getpty.c deleted file mode 100644 index 262474d0b4a7..000000000000 --- a/security/krb5-appl/files/patch-libpty__getpty.c +++ /dev/null @@ -1,50 +0,0 @@ ---- libpty/getpty.c.orig 2009-11-05 12:15:06.000000000 -0800 -+++ libpty/getpty.c 2010-04-21 21:36:45.637180364 -0700 -@@ -23,13 +23,26 @@ - #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, size_t 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 -@@ -112,14 +125,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; - |