X-Git-Url: https://git.tld-linux.org/?p=packages%2Fapache.git;a=blobdiff_plain;f=apache-suexec_fcgi.patch;h=3201f3dc7cac896c4b71bcce65226ced78912c4f;hp=99bcfc316746e4b66c8bd0b5b96a5790b2b7e5b1;hb=1801affac7121bb9bb4859fc0d083a7353ea8589;hpb=af4f8313df3d4f53c3ae5294c8aa7f673b6b7268 diff --git a/apache-suexec_fcgi.patch b/apache-suexec_fcgi.patch index 99bcfc3..3201f3d 100644 --- a/apache-suexec_fcgi.patch +++ b/apache-suexec_fcgi.patch @@ -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) ||