httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilfredo Sanchez <wsanc...@apple.com>
Subject Re: [PATCH] unimportant cgi-bin tweakage
Date Wed, 24 Jun 1998 03:36:08 GMT
>Actually, we provide those scripts with the execute bit turned off, based
>on the same premise.  That should be sufficient, no?  Or does Rhapsody
>execute them anyways?

Actually, the Makefile *doesn't set* the execute bit, but if it happens 
to the the case in your source tree, it doesn't turn it off.

This patch guarantees no executable files are installed in the doc root 
or cgi dir:

Index: Makefile.tmpl
===================================================================
RCS file: /CVSRoot/CoreOS/Services/apache/apache/Makefile.tmpl,v
retrieving revision 1.3
diff -u -b -d -r1.3 Makefile.tmpl
--- Makefile.tmpl	1998/06/22 04:17:55	1.3
+++ Makefile.tmpl	1998/06/24 03:22:37
@@ -360,6 +360,7 @@
 		(cd $(root)$(documentroot)/ && $(TAR) xf -); \
 		find $(root)$(documentroot)/ -type d -exec chmod a+rx {} \; ; \
 		find $(root)$(documentroot)/ -type f -exec chmod a+r {} \; ; \
+		find $(root)$(documentroot)/ -type f -exec chmod a-x {} \; ; \
 	fi
 	-@if [ -f $(root)$(cgidir)/printenv ]; then \
 		echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(cgidir)/]"; \
@@ -369,6 +370,7 @@
 		(cd $(root)$(cgidir)/ && $(TAR) xf -); \
 		find $(root)$(cgidir)/ -type d -exec chmod a+rx {} \; ; \
 		find $(root)$(cgidir)/ -type f -exec chmod a+r {} \; ; \
+		find $(root)$(cgidir)/ -type f -exec chmod a-x {} \; ; \
 	fi
 	@echo "Copying tree $(TOP)/icons/ -> $(root)$(iconsdir)/"; \
 	(cd $(TOP)/icons/ && $(TAR) cf - *) |\


---
     Wilfredo Sanchez - wsanchez@apple.com - 408.974-5174
     Apple Computer, Inc. - Core Operating Systems Group
    2 Infinite Loop, Mail Stop 302-4K, Cupertino, CA 95014


Mime
View raw message