1 --- netkit-telnet-0.17/configure Thu Apr 11 10:40:58 2002
2 +++ FIXEDnetkittelnet/configure Thu Apr 11 10:39:59 2002
4 for TRY in egcs gcc g++ CC c++ cc; do
6 $TRY __conftest.c -o __conftest || exit 1;
7 - ./__conftest || exit 1;
8 ) >/dev/null 2>&1 || continue;
12 echo -n 'Checking if C compiler works... '
14 $CC __conftest.c -o __conftest || exit 1
15 - ./__conftest || exit 1
16 ) >/dev/null 2>&1; then
20 for TRY in egcs gcc g++ CC c++ cc; do
22 $TRY __conftest.cc -o __conftest || exit 1;
23 - ./__conftest || exit 1;
24 ) >/dev/null 2>&1 || continue;
28 echo -n 'Checking if C++ compiler works... '
30 $CXX __conftest.cc -o __conftest || exit 1
31 - ./__conftest || exit 1
32 ) >/dev/null 2>&1; then
38 $CXX $CXXFLAGS __conftest.cc -o __conftest || exit 1
39 - ./__conftest || exit 1
40 ) >/dev/null 2>&1; then
44 $CXX $CXXFLAGS -D__USE_BSD_SIGNAL __conftest.cc -o __conftest || exit 1
45 - ./__conftest || exit 1
46 ) >/dev/null 2>&1; then
47 echo '-D__USE_BSD_SIGNAL'
48 CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
52 echo 'This package needs BSD signal semantics to run.'
53 + echo "$CXX $CXXFLAGS -D__USE_BSD_SIGNAL __conftest.cc -o __conftest failed"
62 -if [ x$NCURSES != x ]; then
63 - LIBTERMCAP=-lncurses
65 - echo -n 'Checking for traditional termcap... '
66 -cat <<EOF >__conftest.cc
70 - tgetent(NULL, NULL); return 0;
75 - $CXX $CXXFLAGS __conftest.cc -ltermcap -o __conftest || exit 1
76 - ) >/dev/null 2>&1; then
78 - LIBTERMCAP=-ltermcap
81 - echo 'This package needs termcap to run.'
88 ##################################################
92 $CXX $CXXFLAGS -D_GNU_SOURCE __conftest.cc -o __conftest || exit 1
93 - ./__conftest || exit 1
94 ) >/dev/null 2>&1; then
96 CFLAGS="$CFLAGS -D_GNU_SOURCE"
100 $CXX $CXXFLAGS __conftest.cc $LIBBSD -o __conftest || exit 1
101 - ./__conftest || exit 1
102 ) >/dev/null 2>&1; then
106 $CXX $CXXFLAGS __conftest.cc -lsnprintf $LIBBSD -o __conftest || exit 1
107 - ./__conftest || exit 1
108 ) >/dev/null 2>&1; then
110 LIBS="$LIBS -lsnprintf"
113 $CXX $CXXFLAGS __conftest.cc -ldb $LIBBSD -o __conftest || exit 1
114 - ./__conftest || exit 1
115 ) >/dev/null 2>&1; then
118 diff -urN netkit-telnet-0.17/telnetd/state.c netkit-telnet-0.17-dm/telnetd/state.c
119 --- netkit-telnet-0.17/telnetd/state.c 1999-12-12 11:41:44.000000000 -0800
120 +++ netkit-telnet-0.17-dm/telnetd/state.c 2003-07-23 19:20:38.000000000 -0700
123 static int envvarok(char *varp);
125 -static unsigned char doopt[] = { IAC, DO, '%', 'c', 0 };
126 -static unsigned char dont[] = { IAC, DONT, '%', 'c', 0 };
127 -unsigned char will[] = { IAC, WILL, '%', 'c', 0 };
128 -unsigned char wont[] = { IAC, WONT, '%', 'c', 0 };
129 +//static unsigned char doopt[] = { IAC, DO, '%', 'c', 0 };
130 +//static unsigned char dont[] = { IAC, DONT, '%', 'c', 0 };
131 +//unsigned char will[] = { IAC, WILL, '%', 'c', 0 };
132 +//unsigned char wont[] = { IAC, WONT, '%', 'c', 0 };
135 * Buffer for sub-options, and macros
137 set_his_want_state_will(option);
138 do_dont_resp[option]++;
140 - netoprintf((char *)doopt, option);
141 + netoprintf( "%c%c%c", IAC, DO, option );
143 DIAG(TD_OPTIONS, printoption("td: send do", option));
146 set_his_want_state_wont(option);
147 do_dont_resp[option]++;
149 - netoprintf((char *) dont, option);
150 + netoprintf ( "%c%c%c", IAC, DONT, option );
152 DIAG(TD_OPTIONS, printoption("td: send dont", option));
155 set_my_want_state_will(option);
156 will_wont_resp[option]++;
158 - netoprintf((char *) will, option);
159 + netoprintf( "%c%c%c", IAC, WILL, option);
161 DIAG(TD_OPTIONS, printoption("td: send will", option));
164 set_my_want_state_wont(option);
165 will_wont_resp[option]++;
167 - netoprintf((char *)wont, option);
168 + netoprintf( "%c%c%c", IAC, WONT, option);
170 DIAG(TD_OPTIONS, printoption("td: send wont", option));