diff options
Diffstat (limited to 'lang/expect/files/patch-pty_termios.c')
-rw-r--r-- | lang/expect/files/patch-pty_termios.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/expect/files/patch-pty_termios.c b/lang/expect/files/patch-pty_termios.c new file mode 100644 index 000000000000..64a9cca5408d --- /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'; |