diff options
-rw-r--r-- | security/heimdal/files/patch-aa | 44 | ||||
-rw-r--r-- | security/heimdal/files/patch-ac | 22 | ||||
-rw-r--r-- | security/heimdal/files/patch-cj | 25 |
3 files changed, 42 insertions, 49 deletions
diff --git a/security/heimdal/files/patch-aa b/security/heimdal/files/patch-aa index aa4e885d3bde..fa141e58bbb6 100644 --- a/security/heimdal/files/patch-aa +++ b/security/heimdal/files/patch-aa @@ -20,47 +20,3 @@ diff -u -w -r1.3 broken-glob.m4 NULL, NULL); ],:,ac_cv_func_glob_working=no,:)) -Index: appl/ftp/ftpd/ftpd.c -=================================================================== -RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/appl/ftp/ftpd/ftpd.c,v -retrieving revision 1.157 -diff -u -w -r1.157 ftpd.c ---- appl/ftp/ftpd/ftpd.c 2001/04/19 14:41:29 1.157 -+++ appl/ftp/ftpd/ftpd.c 2001/06/19 09:07:50 -@@ -2165,7 +2165,13 @@ - char buf[MaxPathLen]; - - if (strpbrk(whichf, "~{[*?") != NULL) { -- int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT; -+ int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| -+#ifdef GLOB_MAXPATH -+ GLOB_MAXPATH -+#else -+ GLOB_LIMIT -+#endif -+ ; - - memset(&gl, 0, sizeof(gl)); - freeglob = 1; -Index: appl/ftp/ftpd/popen.c -=================================================================== -RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/appl/ftp/ftpd/popen.c,v -retrieving revision 1.24 -diff -u -w -r1.24 popen.c ---- appl/ftp/ftpd/popen.c 2001/03/26 11:41:02 1.24 -+++ appl/ftp/ftpd/popen.c 2001/06/19 09:07:50 -@@ -139,7 +139,13 @@ - for (gargc = argc = 1; argv[argc] && gargc < MAXGLOBS - 1; argc++) { - glob_t gl; - int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE -- | GLOB_LIMIT; -+ | -+#ifdef GLOB_MAXPATH -+ GLOB_MAXPATH -+#else -+ GLOB_LIMIT -+#endif -+ ; - - memset(&gl, 0, sizeof(gl)); - if (no_glob || glob(argv[argc], flags, NULL, &gl)) diff --git a/security/heimdal/files/patch-ac b/security/heimdal/files/patch-ac new file mode 100644 index 000000000000..88cabd8ed15f --- /dev/null +++ b/security/heimdal/files/patch-ac @@ -0,0 +1,22 @@ +Index: appl/ftp/ftpd/popen.c +=================================================================== +RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/appl/ftp/ftpd/popen.c,v +retrieving revision 1.24 +diff -u -w -r1.24 popen.c +--- appl/ftp/ftpd/popen.c 2001/03/26 11:41:02 1.24 ++++ appl/ftp/ftpd/popen.c 2001/06/19 09:07:50 +@@ -139,7 +139,13 @@ + for (gargc = argc = 1; argv[argc] && gargc < MAXGLOBS - 1; argc++) { + glob_t gl; + int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE +- | GLOB_LIMIT; ++ | ++#ifdef GLOB_MAXPATH ++ GLOB_MAXPATH ++#else ++ GLOB_LIMIT ++#endif ++ ; + + memset(&gl, 0, sizeof(gl)); + if (no_glob || glob(argv[argc], flags, NULL, &gl)) diff --git a/security/heimdal/files/patch-cj b/security/heimdal/files/patch-cj index 1fe503ab37f4..1eab53ca54d7 100644 --- a/security/heimdal/files/patch-cj +++ b/security/heimdal/files/patch-cj @@ -1,5 +1,5 @@ ---- appl/ftp/ftpd/ftpd.c.orig Thu Aug 31 01:08:49 2000 -+++ appl/ftp/ftpd/ftpd.c Fri Nov 3 12:01:17 2000 +--- appl/ftp/ftpd/ftpd.c.ORIG Fri Jun 29 09:41:46 2001 ++++ appl/ftp/ftpd/ftpd.c Fri Jun 29 09:42:04 2001 @@ -68,6 +68,7 @@ int debug = 0; int ftpd_timeout = 900; /* timeout after 15 minutes of inactivity */ @@ -8,7 +8,7 @@ int logging; int guest; int dochroot; -@@ -215,6 +216,7 @@ +@@ -217,6 +218,7 @@ { NULL, 't', arg_integer, &ftpd_timeout, "initial timeout" }, { NULL, 'T', arg_integer, &maxtimeout, "max timeout" }, { NULL, 'u', arg_string, &umask_string, "umask for user logins" }, @@ -16,7 +16,7 @@ { NULL, 'd', arg_flag, &debug, "enable debugging" }, { NULL, 'v', arg_flag, &debug, "enable debugging" }, { "builtin-ls", 'B', arg_flag, &use_builtin_ls, "use built-in ls to list files" }, -@@ -1942,6 +1944,8 @@ +@@ -1951,6 +1953,8 @@ socket_set_address_and_port (pasv_addr, socket_get_address (ctrl_addr), 0); @@ -25,7 +25,7 @@ seteuid(0); if (bind(pdata, pasv_addr, socket_sockaddr_size (pasv_addr)) < 0) { seteuid(pw->pw_uid); -@@ -1984,6 +1988,8 @@ +@@ -1993,6 +1997,8 @@ socket_set_address_and_port (pasv_addr, socket_get_address (ctrl_addr), 0); @@ -34,3 +34,18 @@ seteuid(0); if (bind(pdata, pasv_addr, socket_sockaddr_size (pasv_addr)) < 0) { seteuid(pw->pw_uid); +@@ -2165,7 +2171,13 @@ + char buf[MaxPathLen]; + + if (strpbrk(whichf, "~{[*?") != NULL) { +- int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT; ++ int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| ++#ifdef GLOB_MAXPATH ++ GLOB_MAXPATH ++#else ++ GLOB_LIMIT ++#endif ++ ; + + memset(&gl, 0, sizeof(gl)); + freeglob = 1; |