bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] bug or feature?


From: Bruce Dubbs
Subject: Re: [Bug-tar] bug or feature?
Date: Thu, 14 Dec 2017 14:03:35 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39

This is a related but possibly different problem.

If a user creates a tarball with 'tar -cf tarball.tar .' and then another user extracts the tarball as root, then the current directory permissions are changed.

The example file is firefox-57.0.source.tar.xz. Although the tarball should not be extracted as user root, some users may do this. If it is done in the /tmp directory, then the permissions change from 1777 to 0755
without any warning.

tar -tvf firefox-57.0.source.tar.xz
drwxr-xr-x 0/0               0 2017-11-12 08:58 ./
...

I have asked FF to update their script to skip the current directory, but they have not thought it important enough to do so. At least not yet.

Is there any reason that tar should change the permissions or ownership of the . directory if it is present in a tarball? Perhaps tar should not allow this by default or even just ignore ./ completely if it is present.

  -- Bruce Dubbs
     linuxfromscratch.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]