From c3e95d0c9b16c078ef127fb45c1d45dc0c039b3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Wed, 22 Feb 2012 01:23:20 +0100 Subject: [PATCH] - prog is undecleared, so use argv[0] --- apache-suexec_fcgi.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) || -- 2.44.0