If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Firefox source release tarball changes directory permissions




Build Config
6 months ago
6 months ago


(Reporter: Bruce Dubbs, Unassigned)


Firefox Tracking Flags

(Not tracked)




6 months ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
Build ID: 20160107220223

Steps to reproduce:

I extracted firefox-52.0.1.source.tar.xz into a directory with rwxrwxr-x (0775) permissions.

Actual results:

The current directory permissions were changed to rwxr-xr-x (0755).

Expected results:

The permissions of the current directory should not have been changed.

Note that the tarball has the entry:

drwxr-xr-x 0/0               0 2017-03-17 07:04 ./

Which should not be there.  In addition, the uid and gid are toot.root.  The script that generates the tarball should be changed to do:

tar -Jcf firefox-<version>.source.tar.xz  firefox-<version>

instead of the current 'tar -Jcf firefox-<version>.source.tar.xz .'

Note also that if the user does something dumb and extracts the tarball as the root user, then the ownership of the current directory changes.  I suggest creating the tarball as a regular user.

Comment 1

6 months ago
Upon further review, thunderbird and seamonkey have the same problem.


6 months ago
Component: Untriaged → General
Product: Firefox → Developer Services
Version: 52 Branch → unspecified

Comment 2

6 months ago
catlee: I have no clue what bug component this belongs under. But I'm pretty sure your team is responsible for generating these archives. Could you please triage it?
Flags: needinfo?(catlee)
Component: General → Build Config
Product: Developer Services → Core
This is https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/installer/packager.mk#159 and https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/installer/upload-files.mk#461
Flags: needinfo?(catlee)
https://hg.mozilla.org/mozilla-central/rev/18df6f749b47 is where I added --transform and changed the target dir to be ./
You need to log in before you can comment on or make changes to this bug.