]> TLD Linux GIT Repositories - packages/apache.git/commitdiff
- prog is undecleared, so use argv[0]
authorBartosz Świątek <shadzik@tld-linux.org>
Wed, 22 Feb 2012 00:23:20 +0000 (01:23 +0100)
committerBartosz Świątek <shadzik@tld-linux.org>
Wed, 22 Feb 2012 00:23:20 +0000 (01:23 +0100)
apache-suexec_fcgi.patch

index 99bcfc316746e4b66c8bd0b5b96a5790b2b7e5b1..3201f3dc7cac896c4b71bcce65226ced78912c4f 100644 (file)
@@ -40,7 +40,7 @@
 +             * If called as suexec.fcgi ignore if there is no passwd
 +             * entry for specified UID. Also bail out if UID = 0.
 +             */
-+            if(!strcmp(base_pathname(prog),"suexec.fcgi")) {
++            if(!strcmp(base_pathname(argv[0]),"suexec.fcgi")) {
 +                tpw.pw_name = strdup(target_uname);
 +                tpw.pw_uid = atoi(target_uname);
 +                tpw.pw_dir = (char *)"/tmp";
@@ -77,7 +77,7 @@
 +     * name/group is different from the name/group of the cwd
 +     * or the program.
 +     */
-+    if(strcmp(base_pathname(prog),"suexec.fcgi")) {
++    if(strcmp(base_pathname(argv[0]),"suexec.fcgi")) {
 +        if ((uid != dir_info.st_uid) ||
 +            (gid != dir_info.st_gid) ||
 +            (uid != prg_info.st_uid) ||