Changeset 2186 for trunk/server
- Timestamp:
- May 5, 2012, 5:40:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/patches/httpd-suexec-scripts.patch
r1877 r2186 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.