You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1998/07/10 10:33:37 UTC
cvs commit: apache-1.3/src/main util_script.c
marc 98/07/10 01:33:36
Modified: src/main util_script.c
Log:
Logging that scripts aren't executable on Win32 if we can't figure
out how is good; telling people the most probable cause (ie. lack of
#! in a script) is even better.
Revision Changes Path
1.122 +4 -2 apache-1.3/src/main/util_script.c
Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/util_script.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -r1.121 -r1.122
--- util_script.c 1998/07/08 17:47:06 1.121
+++ util_script.c 1998/07/10 08:33:36 1.122
@@ -853,8 +853,10 @@
* file this is by now..
*/
if (!is_exe && !is_script && !is_binary) {
- ap_log_error(APLOG_MARK, APLOG_ERR, r->server,
- "%s is not executable", r->filename);
+ ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, r->server,
+ "%s is not executable; ensure interpreted scripts have "
+ "\"#!\" first line",
+ r->filename);
return (pid);
}