From: Bartosz Świątek Date: Wed, 22 Feb 2012 00:23:20 +0000 (+0100) Subject: - prog is undecleared, so use argv[0] X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=c3e95d0c9b16c078ef127fb45c1d45dc0c039b3c;p=packages%2Fapache.git - prog is undecleared, so use argv[0] --- 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) ||