diff mercurial/filemerge.py @ 23940:d0ef40776999 stable

osx: patch .pax.gz files in pkg bundles so they extract as root (issue4081) The packages has to be installed by root but they would be installed insecurely, owned by the uid of the unprivileged user that made the package. The local user with that uid could thus write to /usr/local/bin/hg . bdist_mpkg calls out to pax to create the package, but pax do apparently not have the power to control what it is writing. Instead, patch the pax files and set their uid fields to 0 before they are wrapped in a dmg.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 23 Jan 2015 06:28:28 +0100
parents 41c03b7592ed
children be83fd9d46d5
line wrap: on
line diff