ports/129544: [patch] www/tomcat6 port Makefile fix for recursive permission correction

Martin nakal at web.de
Wed Dec 10 11:40:01 UTC 2008


>Number:         129544
>Category:       ports
>Synopsis:       [patch] www/tomcat6 port Makefile fix for recursive permission correction
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 10 11:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Martin
>Release:        7-STABLE
>Organization:
>Environment:
FreeBSD kirby 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Tue Nov 25 10:23:50 CET 2008     root at kirby:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When upgrading tomcat6 Makefile corrects permission in webapps directory. The find statement causes the upgrade to fail when a directory has spaces in its name.
>How-To-Repeat:
mkdir -p "/usr/local/apache-tomcat6.0/webapps/test dir"
portmaster www/tomcat6
>Fix:
--- Makefile.bak	2008-12-10 12:28:36.000000000 +0100
+++ Makefile	2008-12-10 12:30:03.000000000 +0100
@@ -124,7 +124,7 @@
 	@${ECHO_MSG} " [ DONE ]"
 
 	@${ECHO_MSG} -n ">> Fixing permissions..."
-	@${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
+	@${FIND} ${APP_HOME} -type d -print0 | xargs -0 ${CHMOD} 755
 	@${ECHO_MSG} " [ DONE ]"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list