Date: Sun, 23 Jun 2002 16:37:40 +1000 From: "Chris Knight" <chris@aims.com.au> To: <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/39686: [PATCH] www/mod_frontpage: Detect DocumentRoot owner correctly Message-ID: <200206230635.g5N6ZFd83726@dbserver2.aims.private>
next in thread | raw e-mail | index | archive | help
>Number: 39686 >Category: ports >Synopsis: [PATCH] www/mod_frontpage: Detect DocumentRoot owner correctly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 22 23:40:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.5-RELEASE i386 >Organization: AIMS Independent Computer Professionals >Environment: System: FreeBSD dbserver2.aims.private 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue May 28 16:40:24 EST 2002 root@dbserver2.aims.private:/usr/obj/usr/src/sys/DBSERVER i386 >Description: Makefile.PL doesn't correctly detect the owner of the DocumentRoot directory as cut doesn't include the uid of the directory. >How-To-Repeat: cd /usr/ports/www/mod_frontpage make configure The output shows no value for uid >Fix: Index: files/patch-Makefile.PL =================================================================== RCS file: /home/ncvs/ports/www/mod_frontpage/files/patch-Makefile.PL,v retrieving revision 1.7 diff -u -r1.7 patch-Makefile.PL --- files/patch-Makefile.PL 16 May 2002 10:58:30 -0000 1.7 +++ files/patch-Makefile.PL 23 Jun 2002 06:27:43 -0000 @@ -1,5 +1,5 @@ ---- Makefile.PL.orig Tue Mar 12 22:07:07 2002 -+++ Makefile.PL Thu May 16 12:21:00 2002 +--- Makefile.PL.orig Wed Mar 13 08:07:07 2002 ++++ Makefile.PL Sun Jun 23 16:27:37 2002 @@ -9,14 +9,28 @@ # FP extensions 5.0 from Martin Blapp <mbr@freebsd.org> # @@ -34,6 +34,15 @@ print "If you don't know, enter the word 'findit'. I will try to look\n"; print "for you... but it will take a few minutes.\n"; print "Your choice: "; +@@ -111,7 +125,7 @@ + } + print "DocumentRoot: $documentroot\n"; + +-$_=`ls -dln $documentroot|cut -c 17-30`; ++$_=`ls -dln $documentroot|cut -c 15-30`; + if (/^(\d*)(\s*)(\d*)/) { + $uid=$1; $gid=$3; + print "Content uid $uid, gid $gid\n"; @@ -121,8 +135,8 @@ # Check the user for sanity # Should be 48 for Mandrake, 80 for BSD >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206230635.g5N6ZFd83726>