This commit is contained in:
Alexander Zhirov 2025-04-25 17:04:22 +03:00
commit 29da8777e6
9 changed files with 582 additions and 0 deletions

24
fix-common.patch Normal file
View file

@ -0,0 +1,24 @@
diff -urN tftp-hpa-5.2.orig/tftp/main.c tftp-hpa-5.2/tftp/main.c
--- tftp-hpa-5.2.orig/tftp/main.c 2020-11-14 22:21:15.851650899 -0700
+++ tftp-hpa-5.2/tftp/main.c 2020-11-14 22:21:41.878327755 -0700
@@ -95,7 +95,7 @@
int margc;
char *margv[20];
const char *prompt = "tftp> ";
-sigjmp_buf toplevel;
+static sigjmp_buf toplevel;
void intr(int);
struct servent *sp;
int portrange = 0;
diff -urN tftp-hpa-5.2.orig/tftp/tftp.c tftp-hpa-5.2/tftp/tftp.c
--- tftp-hpa-5.2.orig/tftp/tftp.c 2020-11-14 22:21:15.851650899 -0700
+++ tftp-hpa-5.2/tftp/tftp.c 2020-11-14 22:21:51.304998113 -0700
@@ -48,7 +48,7 @@
#define PKTSIZE SEGSIZE+4
char ackbuf[PKTSIZE];
int timeout;
-sigjmp_buf toplevel;
+static sigjmp_buf toplevel;
sigjmp_buf timeoutbuf;
static void nak(int, const char *);