update telnet-0.17-sa-01-49.patch to make it apply with fuzz=0

This commit is contained in:
Karsten Hopp 2011-01-20 22:50:00 +01:00
parent d28a5c778d
commit 25f8752292
2 changed files with 36 additions and 28 deletions

View File

@ -1,6 +1,7 @@
--- netkit-telnet-0.17/telnetd/ext.h.sa-01-49 Sun Dec 12 15:59:44 1999 diff -up netkit-telnet-0.17/telnetd/ext.h.sa-01-49 netkit-telnet-0.17/telnetd/ext.h
+++ netkit-telnet-0.17/telnetd/ext.h Tue Jul 31 14:16:01 2001 --- netkit-telnet-0.17/telnetd/ext.h.sa-01-49 1999-12-12 15:59:44.000000000 +0100
@@ -86,7 +86,10 @@ +++ netkit-telnet-0.17/telnetd/ext.h 2011-01-20 22:39:54.000000000 +0100
@@ -86,7 +86,10 @@ extern char *neturg; /* one past last b
extern int pcc, ncc; extern int pcc, ncc;
/* printf into netobuf */ /* printf into netobuf */
@ -12,7 +13,7 @@
extern int pty, net; extern int pty, net;
extern char *line; extern char *line;
@@ -182,7 +185,10 @@ @@ -182,7 +185,10 @@ void tty_setsofttab(int);
void tty_tspeed(int); void tty_tspeed(int);
void willoption(int); void willoption(int);
void wontoption(int); void wontoption(int);
@ -23,9 +24,10 @@
#if defined(ENCRYPT) #if defined(ENCRYPT)
extern void (*encrypt_output)(unsigned char *, int); extern void (*encrypt_output)(unsigned char *, int);
--- netkit-telnet-0.17/telnetd/slc.c.sa-01-49 Sun Dec 12 15:59:44 1999 diff -up netkit-telnet-0.17/telnetd/slc.c.sa-01-49 netkit-telnet-0.17/telnetd/slc.c
+++ netkit-telnet-0.17/telnetd/slc.c Tue Jul 31 14:16:01 2001 --- netkit-telnet-0.17/telnetd/slc.c.sa-01-49 1999-12-12 15:59:44.000000000 +0100
@@ -183,7 +183,7 @@ +++ netkit-telnet-0.17/telnetd/slc.c 2011-01-20 22:39:54.000000000 +0100
@@ -183,7 +183,7 @@ int end_slc(unsigned char **bufp) {
else { else {
snprintf(slcbuf+slcoff, sizeof(slcbuf)-slcoff, "%c%c", IAC, SE); snprintf(slcbuf+slcoff, sizeof(slcbuf)-slcoff, "%c%c", IAC, SE);
slcoff += 2; slcoff += 2;
@ -34,17 +36,18 @@
netflush(); /* force it out immediately */ netflush(); /* force it out immediately */
} }
} }
--- netkit-telnet-0.17/telnetd/state.c.sa-01-49 Sun Dec 12 20:41:44 1999 diff -up netkit-telnet-0.17/telnetd/state.c.sa-01-49 netkit-telnet-0.17/telnetd/state.c
+++ netkit-telnet-0.17/telnetd/state.c Tue Jul 31 14:16:01 2001 --- netkit-telnet-0.17/telnetd/state.c.sa-01-49 1999-12-12 20:41:44.000000000 +0100
+++ netkit-telnet-0.17/telnetd/state.c 2011-01-20 22:43:34.000000000 +0100
@@ -37,6 +37,7 @@ @@ -37,6 +37,7 @@
char state_rcsid[] = char state_rcsid[] =
"$Id: telnet-0.17-sa-01-49.patch,v 1.1 2004/09/09 13:10:15 cvsdist Exp $"; "$Id: state.c,v 1.12 1999/12/12 19:41:44 dholland Exp $";
+#include <stdarg.h> +#include <stdarg.h>
#include "telnetd.h" #include "telnetd.h"
int not42 = 1; int not42 = 1;
@@ -1365,7 +1366,7 @@ @@ -1365,7 +1366,7 @@ void send_status(void) {
ADD(IAC); ADD(IAC);
ADD(SE); ADD(SE);
@ -53,9 +56,10 @@
netflush(); /* Send it on its way */ netflush(); /* Send it on its way */
DIAG(TD_OPTIONS, {printsub('>', statusbuf, ncp - statusbuf); netflush();}); DIAG(TD_OPTIONS, {printsub('>', statusbuf, ncp - statusbuf); netflush();});
--- netkit-telnet-0.17/telnetd/termstat.c.sa-01-49 Sun Dec 12 15:59:45 1999 diff -up netkit-telnet-0.17/telnetd/termstat.c.sa-01-49 netkit-telnet-0.17/telnetd/termstat.c
+++ netkit-telnet-0.17/telnetd/termstat.c Tue Jul 31 14:16:01 2001 --- netkit-telnet-0.17/telnetd/termstat.c.sa-01-49 1999-12-12 15:59:45.000000000 +0100
@@ -128,7 +128,6 @@ +++ netkit-telnet-0.17/telnetd/termstat.c 2011-01-20 22:39:54.000000000 +0100
@@ -128,7 +128,6 @@ static int _terminit = 0;
void void
localstat() localstat()
{ {
@ -63,20 +67,21 @@
int need_will_echo = 0; int need_will_echo = 0;
/* /*
--- netkit-telnet-0.17/telnetd/utility.c.sa-01-49 Tue Jul 31 14:16:01 2001 diff -up netkit-telnet-0.17/telnetd/utility.c.sa-01-49 netkit-telnet-0.17/telnetd/utility.c
+++ netkit-telnet-0.17/telnetd/utility.c Tue Jul 31 14:46:15 2001 --- netkit-telnet-0.17/telnetd/utility.c.sa-01-49 2011-01-20 22:39:54.000000000 +0100
@@ -38,8 +38,9 @@ +++ netkit-telnet-0.17/telnetd/utility.c 2011-01-20 22:48:02.000000000 +0100
"$Id: telnet-0.17-sa-01-49.patch,v 1.1 2004/09/09 13:10:15 cvsdist Exp $"; @@ -38,8 +38,10 @@ char util_rcsid[] =
"$Id: utility.c,v 1.11 1999/12/12 14:59:45 dholland Exp $";
#define PRINTOPTIONS #define PRINTOPTIONS
-
+#define _GNU_SOURCE +#define _GNU_SOURCE
#include <stdarg.h> #include <stdarg.h>
+#include <stdio.h> +#include <stdio.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#ifdef AUTHENTICATE #ifdef AUTHENTICATE
@@ -52,6 +53,53 @@ @@ -52,6 +54,53 @@ char util_rcsid[] =
* utility functions performing io related tasks * utility functions performing io related tasks
*/ */
@ -130,7 +135,7 @@
void void
netoprintf(const char *fmt, ...) netoprintf(const char *fmt, ...)
{ {
@@ -67,7 +115,7 @@ @@ -67,7 +116,7 @@ netoprintf(const char *fmt, ...)
va_end(ap); va_end(ap);
if (len<0 || len==maxsize) { if (len<0 || len==maxsize) {
@ -139,7 +144,7 @@
netflush(); netflush();
} }
else { else {
@@ -76,6 +124,7 @@ @@ -76,6 +125,7 @@ netoprintf(const char *fmt, ...)
} }
nfrontp += len; nfrontp += len;
} }
@ -147,7 +152,7 @@
/* /*
* ttloop * ttloop
@@ -273,10 +322,15 @@ @@ -273,10 +323,15 @@ netflush(void)
int n; int n;
if ((n = nfrontp - nbackp) > 0) { if ((n = nfrontp - nbackp) > 0) {
@ -163,7 +168,7 @@
#if defined(ENCRYPT) #if defined(ENCRYPT)
if (encrypt_output) { if (encrypt_output) {
char *s = nclearto ? nclearto : nbackp; char *s = nclearto ? nclearto : nbackp;
@@ -310,11 +364,14 @@ @@ -310,11 +365,14 @@ netflush(void)
} }
} }
} }
@ -183,7 +188,7 @@
nbackp += n; nbackp += n;
#if defined(ENCRYPT) #if defined(ENCRYPT)
if (nbackp > nclearto) if (nbackp > nclearto)
@@ -332,7 +389,7 @@ @@ -332,7 +390,7 @@ netflush(void)
return; return;
} /* end of netflush */ } /* end of netflush */
@ -192,7 +197,7 @@
/* /*
* writenet * writenet
* *
@@ -355,7 +412,7 @@ @@ -355,7 +413,7 @@ void writenet(register unsigned char *pt
nfrontp += len; nfrontp += len;
} /* end of writenet */ } /* end of writenet */

View File

@ -1,7 +1,7 @@
Summary: The client program for the Telnet remote login protocol Summary: The client program for the Telnet remote login protocol
Name: telnet Name: telnet
Version: 0.17 Version: 0.17
Release: 47%{?dist} Release: 48%{?dist}
Epoch: 1 Epoch: 1
License: BSD License: BSD
Group: Applications/Internet Group: Applications/Internet
@ -129,6 +129,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man8/telnetd.8* %{_mandir}/man8/telnetd.8*
%changelog %changelog
* Thu Jan 20 2011 Karsten Hopp <karsten@redhat.com> 1:0.17-48
- update telnet-0.17-sa-01-49.patch to make it apply with fuzz=0
* Tue Mar 09 2010 Adam Tkac <atkac redhat com> 1:0.17-47 * Tue Mar 09 2010 Adam Tkac <atkac redhat com> 1:0.17-47
- add URL and README - add URL and README