ports/89606: devel/subversion: Subversion sets incorrect permission for files in /usr/local/share/subversion

Derek Kulinski takeda at takeda.tk
Sat Nov 26 21:30:23 UTC 2005


>Number:         89606
>Category:       ports
>Synopsis:       devel/subversion: Subversion sets incorrect permission for files in /usr/local/share/subversion
>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:   Sat Nov 26 21:30:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Derek Kulinski
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
FreeBSD chinatsu.takeda.tk 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 24 23:40:38 PST 2005     root at chinatsu.takeda.tk:/usr/obj/usr/src/sys/CHINATSU  i386
   
>Description:
The port uses tar to copy files:
cd ${WRKSRC}/tools ; \
  tar --exclude '*.in' -cf - * | tar -C ${PREFIX}/share/subversion -xf -

This way installed files preserve permissions from the ones in archive, the problem with archive is that files only have permissions for owner and the group, nobody else can access them.
>How-To-Repeat:
Just install the port and check for permissions in /usr/local/share/subversion
>Fix:
There are many ways to fix it, but I don't know which one is best:
find /usr/local/share/subversion -type d | xargs chmod o+rx
find /usr/local/share/subversion -type f -perm -100 | xargs chmod o+x
find /usr/local/share/subversion -type f -perm -400 | xargs chmod o+r

This is probably good to fix permissions once the port is installed, I guess the best would be to use loop and do $(INSTALL) for every file.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list