Return-Path: Delivered-To: apmail-apache-bugdb-archive@apache.org Received: (qmail 23094 invoked by uid 500); 17 Dec 2001 15:30:03 -0000 Mailing-List: contact apache-bugdb-help@apache.org; run by ezmlm Precedence: bulk Reply-To: apache-bugdb@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-bugdb@apache.org Received: (qmail 22895 invoked by uid 501); 17 Dec 2001 15:30:01 -0000 Date: 17 Dec 2001 15:30:01 -0000 Message-ID: <20011217153001.22894.qmail@apache.org> To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org, From: =?iso-8859-1?Q?Rainer_D=F6rntge?= Subject: Re: general/9153: FollowSymLinks does not work on ext3 Filesystem Reply-To: =?iso-8859-1?Q?Rainer_D=F6rntge?= The following reply was made to PR general/9153; it has been noted by GNATS. From: =?iso-8859-1?Q?Rainer_D=F6rntge?= To: Cc: Subject: Re: general/9153: FollowSymLinks does not work on ext3 Filesystem Date: Mon, 17 Dec 2001 16:20:40 +0100 > -----Urspr=FCngliche Nachricht----- > Von: submit@bugz.apache.org [mailto:submit@bugz.apache.org] > Gesendet: Montag, 17. Dezember 2001 13:00 > An: Rainer D=F6rntge > Betreff: Re: general/9153: FollowSymLinks does not work on ext3 > Filesystem >=20 >=20 > Thank you very much for your problem report. > It has the internal identification `general/9153'. > The individual assigned to look at your > report is: apache.=20 >=20 > >Category: general > >Responsible: apache > >Synopsis: FollowSymLinks does not work on ext3 Filesystem > >Arrival-Date: Mon Dec 17 04:00:00 PST 2001 >=20 Hi, we have located the problem which is NOT an ext3-problem. It comes with mod_suexec. if the lstat() call to the program is replaced by stat(), it works. <------------------- diff -u output BEGIN -------------------> --- suexec.c.orig Mon Dec 17 15:12:42 2001 +++ suexec.c Mon Dec 17 15:07:56 2001 @@ -534,7 +534,7 @@ /* * Error out if we cannot stat the program. */ - if (((lstat(cmd, &prg_info)) !=3D 0) || = (S_ISLNK(prg_info.st_mode))) { + if (((stat(cmd, &prg_info)) !=3D 0) || (S_ISLNK(prg_info.st_mode))) = { log_err("error: cannot stat program: (%s)\n", cmd); exit(117); } <------------------- diff -u output END -------------------> Is it a bug or a feature? Should apache not follow symlinks to programs? Probably, some more code has to be applied to check whether FollowSymLinks or SymLinksIfOwnerMatch was set. Rainer To err is human - to purr feline. - Richard Byrne=20 kiwilogic.com ag | Rainer D=F6rntge | Am Sandtorkai 77=20 20457 Hamburg | Fon: +49 - 40 - 82 22 13 - 403=20 Germany | Fax: +49 - 40 - 82 22 13 - 100=20 http://www.kiwilogic.com | mailto:doerntge@kiwilogic.com=20 Map = http://www.stadtplandienst.de/query;ORT=3Dhh;LL=3D9.984x53.5442;GR=3D5 WebCam http://www.hafen-hamburg.de/webcam/center_webcam.php?wrap=3D1&navoben= =3D 1