diff --git a/www/publicfile/files/patch-Makefile b/www/publicfile/files/patch-Makefile index b866e30ee586..35ce26a1214b 100644 --- a/www/publicfile/files/patch-Makefile +++ b/www/publicfile/files/patch-Makefile @@ -1,49 +1,49 @@ ---- Makefile.orig 1999-11-09 08:23:46.000000000 +0100 -+++ Makefile 2014-08-21 12:29:41.000000000 +0200 -@@ -32,6 +32,14 @@ +--- Makefile.orig 1999-11-09 07:23:46 UTC ++++ Makefile +@@ -32,6 +32,14 @@ compile auto_home.c compile auto_home.c ./compile auto_home.c +auto_home_stage.c: \ +auto-str conf-stage + ./auto-str auto_home `head -1 conf-stage` > auto_home_stage.c + +auto_home_stage.o: \ +compile auto_home_stage.c + ./compile auto_home_stage.c + byte_chr.o: \ compile byte_chr.c byte.h ./compile byte_chr.c -@@ -231,7 +239,7 @@ +@@ -231,7 +239,7 @@ hier.o: \ ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h hier.o: \ -compile hier.c auto_home.h +compile hier.c auto_home_stage.h ./compile hier.c httpd: \ -@@ -257,9 +265,9 @@ +@@ -257,9 +265,9 @@ install: \ ./compile httpdate.c install: \ -load install.o hier.o auto_home.o strerr.a substdio.a open.a error.a \ +load install.o hier.o auto_home_stage.o strerr.a substdio.a open.a error.a \ str.a - ./load install hier.o auto_home.o strerr.a substdio.a \ + ./load install hier.o auto_home_stage.o strerr.a substdio.a \ open.a error.a str.a install.o: \ -@@ -268,8 +276,8 @@ +@@ -268,8 +276,8 @@ instcheck: \ ./compile install.c instcheck: \ -load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a - ./load instcheck hier.o auto_home.o strerr.a substdio.a \ +load instcheck.o hier.o auto_home_stage.o strerr.a substdio.a error.a str.a + ./load instcheck hier.o auto_home_stage.o strerr.a substdio.a \ error.a str.a instcheck.o: \ diff --git a/www/publicfile/files/patch-auto_home_stage.h b/www/publicfile/files/patch-auto_home_stage.h index 9b12a18e6e49..35880e55a9a9 100644 --- a/www/publicfile/files/patch-auto_home_stage.h +++ b/www/publicfile/files/patch-auto_home_stage.h @@ -1,9 +1,9 @@ ---- /dev/null 2014-08-21 12:22:00.000000000 +0200 -+++ auto_home_stage.h 2014-08-21 12:25:14.000000000 +0200 +--- auto_home_stage.h.orig 2024-10-25 11:20:18 UTC ++++ auto_home_stage.h @@ -0,0 +1,6 @@ +#ifndef AUTO_HOME_STAGE_H_ +#define AUTO_HOME_STAGE_H_ + +extern char auto_home[]; + +#endif diff --git a/www/publicfile/files/patch-error.h b/www/publicfile/files/patch-error.h new file mode 100644 index 000000000000..e466f6122d08 --- /dev/null +++ b/www/publicfile/files/patch-error.h @@ -0,0 +1,11 @@ +--- error.h.orig 2024-10-25 11:21:26 UTC ++++ error.h +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include + + extern int error_intr; + extern int error_nomem; diff --git a/www/publicfile/files/patch-fetch.c b/www/publicfile/files/patch-fetch.c index 9193103aed5a..be6f256cba76 100644 --- a/www/publicfile/files/patch-fetch.c +++ b/www/publicfile/files/patch-fetch.c @@ -1,20 +1,20 @@ ---- fetch.c.orig 1999-11-08 23:23:46.000000000 -0800 -+++ fetch.c 2014-01-29 15:19:43.000000000 -0800 -@@ -82,7 +82,7 @@ +--- fetch.c.orig 1999-11-09 07:23:46 UTC ++++ fetch.c +@@ -82,7 +82,7 @@ static void list(char *fn,int flaglong) substdio_puts(&ss,"\r\n"); } -static int doit(char *fn,int fddata,int fdfile,int how) +static void doit(char *fn,int fddata,int fdfile,int how) { DIR *dir; direntry *d; -@@ -122,7 +122,7 @@ +@@ -122,7 +122,7 @@ static int doit(char *fn,int fddata,int fdfile,int how for (;;) { r = read(fdfile,inbuf,sizeof inbuf); if (r == -1) { - if (errno = error_intr) continue; + if (errno == error_intr) continue; _exit(23); } if (r == 0) diff --git a/www/publicfile/files/patch-hier.c b/www/publicfile/files/patch-hier.c index 587e3885207b..be93922dd715 100644 --- a/www/publicfile/files/patch-hier.c +++ b/www/publicfile/files/patch-hier.c @@ -1,14 +1,14 @@ ---- hier.c.orig Tue Apr 20 11:26:00 2004 -+++ hier.c Tue Apr 20 11:26:06 2004 -@@ -2,9 +2,9 @@ +--- hier.c.orig 1999-11-09 07:23:46 UTC ++++ hier.c +@@ -2,9 +2,9 @@ void hier() void hier() { - h(auto_home,-1,-1,02755); + h(auto_home,-1,-1,0755); - d(auto_home,"bin",-1,-1,02755); + d(auto_home,"bin",-1,-1,0755); c(auto_home,"bin","configure",-1,-1,0755); c(auto_home,"bin","httpd",-1,-1,0755);