You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Blair Zajac <bl...@orcaware.com> on 2006/11/01 00:04:18 UTC
Dist tarballs with no 'other' file and directory permissions
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
Re: Dist tarballs with no 'other' file and directory permissions
Posted by David Anderson <da...@natulte.net>.
Interesting. This is probably an artifact of the umask on the machine
where I rolled this. I'll be rolling 1.4.2 tomorrow (yeah, was
supposed to do that today, but got sidetracked), I'll keep an eye out
for this.
Thanks,
- Dave
On 10/31/06, Blair Zajac <bl...@orcaware.com> wrote:
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org