diff options
-rw-r--r-- | lang/expect/Makefile | 1 | ||||
-rw-r--r-- | lang/expect/files/patch-pty_termios.c | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/lang/expect/Makefile b/lang/expect/Makefile index 9c96f2621e9..348586348ab 100644 --- a/lang/expect/Makefile +++ b/lang/expect/Makefile @@ -6,6 +6,7 @@ PORTNAME= expect PORTVERSION= 5.43.0 +PORTREVISION= 1 CATEGORIES= lang tcl84 tk84 MASTER_SITES= http://expect.nist.gov/src/ diff --git a/lang/expect/files/patch-pty_termios.c b/lang/expect/files/patch-pty_termios.c new file mode 100644 index 00000000000..64a9cca5408 --- /dev/null +++ b/lang/expect/files/patch-pty_termios.c @@ -0,0 +1,20 @@ +--- pty_termios.c.orig Fri May 7 17:46:03 2004 ++++ pty_termios.c Fri Oct 6 01:17:48 2006 +@@ -166,7 +166,7 @@ + static char *slave_bank; + static char *slave_num; + #else +-static char banks[] = "pqrstuvwxyzPQRSTUVWXYZ"; ++static char banks[] = "pqrsPQRS"; /* FreeBSD scheme */ + static char master_name[] = "/dev/ptyXX"; + static char slave_name [] = "/dev/ttyXX"; + #endif /* HAVE_PTYM */ +@@ -489,7 +489,7 @@ + *tty_bank = *bank; + *tty_num = '0'; + if (stat(master_name, &stat_buf) < 0) break; +- for (hex = "0123456789abcdef";*hex;hex++) { ++ for (hex = "0123456789abcdefghijklmnopqrstuv";*hex;hex++) { + *tty_num = *hex; + strcpy(slave_name,master_name); + *tty_type = 't'; |