[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Dist tarballs with no 'other' file and directory permissions

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-11-01 01:04:18 CET

I was doing a MacPorts build today and ended up noticing that some of the
installed files in /opt/local/share/subversion are copied directly from the
extracted tarball and these directories were not other readable by normal users:

$ ls -l /opt/local/share/subversion/
drwxr-x--- 7 root admin 238 Oct 30 12:18 contrib
drwxr-x--- 14 root admin 476 Oct 30 12:18 tools

This stems from the modes in the files in the tarballs:

$ bzcat subversion-1.4.1.tar.bz2 |tar tvf - | head
drwxr-x--- danderson/nonconf 0 2006-10-27 14:34:16 subversion-1.4.1
drwxr-x--- danderson/nonconf 0 2006-10-27 14:28:47 subversion-1.4.1/www
-rw-r----- danderson/nonconf 4094 2002-09-04 05:16:35
subversion-1.4.1/www/subversion_logo_hor-468x64.png
-rw-r----- danderson/nonconf 55406 2004-09-20 11:56:49
subversion-1.4.1/www/subversion-diagram.png
-rw-r----- danderson/nonconf 9567 2005-11-23 15:59:23
subversion-1.4.1/www/release-history.html

Extracted, they look like this with my umask of 022:

$ ls -l subversion-1.4.1
total 1564
-rw-r----- 1 blair arbz 107 Sep 20 2005 BUGS
-rw-r----- 1 blair arbz 118113 Oct 27 13:43 CHANGES
-rw-r----- 1 blair arbz 8675 Oct 15 13:42 COMMITTERS
-rw-r----- 1 blair arbz 2745 Dec 16 2003 COPYING
-rw-r----- 1 blair arbz 246 Oct 27 14:34 ChangeLog.CVS
-rw-r----- 1 blair arbz 113 Jul 21 2005 HACKING
-rw-r----- 1 blair arbz 55061 Oct 27 14:27 INSTALL
-rw-r----- 1 blair arbz 25418 Aug 23 08:12 Makefile.in
-rw-r----- 1 blair arbz 2238 Jan 9 2006 README
-rw-r----- 1 blair arbz 2209 Oct 27 13:43 STATUS
-rw-r----- 1 blair arbz 9356 Feb 3 2006 TRANSLATING
-rw-r----- 1 blair arbz 837 Jan 24 2006 aclocal.m4
-rwxr-x--- 1 blair arbz 4526 Aug 22 11:28 autogen.sh

Normally, this isn't a problem, but it is odd.

Can we put an explicit umask in the dist.sh or take any other normal steps to
have the other user have normal permissions?

Thanks,
Blair

-- 
Blair Zajac, Ph.D.
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 1 01:04:36 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.