[apache2] 01/01: Refresh suexec-custom.patch
Arno Töll
atoell-guest at moszumanska.debian.org
Thu Jan 2 11:18:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
atoell-guest pushed a commit to branch master
in repository apache2.
commit 66bf50debfedda15605c7866c5a02d15e3a77493
Author: Arno Töll <arno at debian.org>
Date: Thu Jan 2 00:18:34 2014 -1100
Refresh suexec-custom.patch
---
debian/changelog | 3 ++-
debian/patches/series | 4 ++--
debian/patches/suexec-custom.patch | 22 ++++++++++------------
3 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ffaefc4..519168f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -41,8 +41,9 @@ apache2 (2.4.7-1) unstable; urgency=low
(Closes: #730372).
* Add GPG support to our watch file. Thanks to Daniel Kahn Gillmor
for this suggestion and for providing a patch (Closes: #732450)
+ * Refresh suexec-custom.patch.
- -- Arno Töll <arno at debian.org> Mon, 23 Dec 2013 23:52:12 -1100
+ -- Arno Töll <arno at debian.org> Thu, 02 Jan 2014 00:17:56 -1100
apache2 (2.4.6-3) unstable; urgency=low
diff --git a/debian/patches/series b/debian/patches/series
index 155ae54..fce3171 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,7 +1,7 @@
-#make_include_safe.patch # Probably to be droped in 2.4
fhs_compliance.patch
-#suexec_is_shared.patch # Probably not needed in 2.4
no_LD_LIBRARY_PATH.patch
suexec-CVE-2007-1742.patch
customize_apxs.patch
build_suexec-custom.patch
+# This patch is applied manually
+#suexec-custom.patch
diff --git a/debian/patches/suexec-custom.patch b/debian/patches/suexec-custom.patch
index 154b0a7..e25842e 100644
--- a/debian/patches/suexec-custom.patch
+++ b/debian/patches/suexec-custom.patch
@@ -2,10 +2,8 @@ Description: the actual patch to make suexec-custom read a config file
Forwarded: not-needed
Author: Stefan Fritsch <sf at debian.org>
Last-Update: 2012-02-25
-Index: apache2/support/suexec-custom.c
-===================================================================
---- apache2.orig/support/suexec-custom.c
-+++ apache2/support/suexec-custom.c
+--- a/support/suexec-custom.c
++++ b/support/suexec-custom.c
@@ -29,6 +29,7 @@
*
*
@@ -22,7 +20,7 @@ Index: apache2/support/suexec-custom.c
#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
-@@ -191,6 +193,26 @@
+@@ -197,6 +199,26 @@
return;
}
@@ -49,7 +47,7 @@ Index: apache2/support/suexec-custom.c
static void clean_env(void)
{
char pathbuf[512];
-@@ -253,6 +275,11 @@
+@@ -263,6 +285,11 @@
struct stat dir_info; /* directory info holder */
struct stat prg_info; /* program info holder */
int cwdh; /* handle to cwd */
@@ -61,7 +59,7 @@ Index: apache2/support/suexec-custom.c
/*
* Start with a "clean" environment
-@@ -282,15 +309,10 @@
+@@ -292,15 +319,10 @@
|| (! strcmp(AP_HTTPD_USER, pw->pw_name)))
#endif /* _OSD_POSIX */
) {
@@ -78,7 +76,7 @@ Index: apache2/support/suexec-custom.c
#ifdef AP_LOG_EXEC
fprintf(stderr, " -D AP_LOG_EXEC=\"%s\"\n", AP_LOG_EXEC);
#endif
-@@ -303,9 +325,6 @@
+@@ -313,9 +335,6 @@
#ifdef AP_UID_MIN
fprintf(stderr, " -D AP_UID_MIN=%d\n", AP_UID_MIN);
#endif
@@ -88,7 +86,7 @@ Index: apache2/support/suexec-custom.c
exit(0);
}
/*
-@@ -320,23 +339,6 @@
+@@ -330,23 +349,6 @@
target_gname = argv[2];
cmd = argv[3];
@@ -112,7 +110,7 @@ Index: apache2/support/suexec-custom.c
/*
* Check for a leading '/' (absolute path) in the command to be executed,
-@@ -361,6 +363,63 @@
+@@ -371,6 +373,63 @@
}
/*
@@ -176,7 +174,7 @@ Index: apache2/support/suexec-custom.c
* Error out if the target username is invalid.
*/
if (strspn(target_uname, "1234567890") != strlen(target_uname)) {
-@@ -494,7 +553,7 @@
+@@ -511,7 +570,7 @@
if (userdir) {
if (((chdir(target_homedir)) != 0) ||
@@ -185,7 +183,7 @@ Index: apache2/support/suexec-custom.c
((getcwd(dwd, AP_MAXPATH)) == NULL) ||
((fchdir(cwdh)) != 0)) {
log_err("cannot get docroot information (%s)\n", target_homedir);
-@@ -502,7 +561,7 @@
+@@ -519,7 +578,7 @@
}
}
else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git
More information about the Pkg-apache-commits
mailing list