- Timestamp:
- May 22, 2012, 10:52:35 PM (12 years ago)
- Location:
- branches/fc17-dev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc17-dev
- Property svn:mergeinfo changed
/trunk (added) merged: 2082-2122,2125-2148,2150-2194
- Property svn:mergeinfo changed
-
branches/fc17-dev/server/common/patches/httpd-suexec-scripts.patch
r1877 r2195 314 314 exit(121); 315 315 } 316 @@ -614,6 +767, 23@@316 @@ -614,6 +767,30 @@ 317 317 /* 318 318 * Execute the command, replacing our image with its own. … … 331 331 + argv[1] = PHP_PATH; 332 332 + argv[2] = "-f"; 333 + /* 334 + * argv[3] is the command to run. argv[4] is either an argument or 335 + * already null. We don't want to pass any arguments through from 336 + * Apache (since they're untrusted), so we chop off the remainder 337 + * of argv here. 338 + */ 339 + argv[4] = 0; 333 340 + execv(PHP_PATH, &argv[1]); 334 341 + log_err("(%d)%s: php exec failed (%s)\n", errno, strerror(errno), argv[1]);
Note: See TracChangeset
for help on using the changeset viewer.