1 Index: user/telnetd/sys_term.c
2 ===================================================================
3 RCS file: /usr/local/src/blackfin/rsync/uclinux533/uClinux-dist/user/telnetd/sys_term.c,v
4 retrieving revision 1.2
5 diff -u -p -r1.2 sys_term.c
6 --- user/telnetd/sys_term.c 25 Jul 2005 06:44:04 -0000 1.2
7 +++ user/telnetd/sys_term.c 9 Sep 2006 03:36:52 -0000
8 @@ -453,6 +453,27 @@ int getpty(void) {
14 + int ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY);
16 + fatalperror(net, "Could not open /dev/ptmx");
17 + if (grantpt(ptm) < 0)
18 + fatalperror(net, "Could not grantpt(/dev/ptmx)");
19 + if (unlockpt(ptm) < 0)
20 + fatalperror(net, "Could not unlockpt(/dev/ptmx)");
23 + fatalperror(net, "Could not get ptsname()");
26 + ptyslavefd = open(pts, O_RDWR | O_NOCTTY);
28 + fatalperror(net, "Could not open slave pty");
36 @@ -502,6 +523,8 @@ int getpty(void) {
44 extern lowpty, highpty;