Changeset 1355 for trunk/server


Ignore:
Timestamp:
Nov 9, 2009, 11:14:31 PM (13 years ago)
Author:
andersk
Message:
suexec: Exec static-cat or php-cgi after closing the suexec log.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/patches/httpd-suexec-scripts.patch

    r1354 r1355  
    271271         (gid != dir_info.st_gid) ||
    272272         (uid != prg_info.st_uid) ||
    273 @@ -576,16 +690,33 @@
     273@@ -576,12 +690,14 @@
    274274                 prg_info.st_uid, prg_info.st_gid);
    275275         exit(120);
     
    287287         exit(121);
    288288     }
    289  
     289@@ -614,6 +730,20 @@
     290     /*
     291      * Execute the command, replacing our image with its own.
     292      */
    290293+    if (is_static_extension(cmd)) {
    291294+        argv[2] = STATIC_CAT_PATH;
     
    302305+        exit(255);
    303306+    }
    304 +
    305  #ifdef AP_SUEXEC_UMASK
    306      /*
    307       * umask() uses inverse logic; bits are CLEAR for allowed access.
     307 #ifdef NEED_HASHBANG_EMUL
     308     /* We need the #! emulation when we want to execute scripts */
     309     {
Note: See TracChangeset for help on using the changeset viewer.