Ticket #354 (new task)

Opened 7 years ago

Find a better way to sanitise permissions after unpack

Reported by: dleverton Owned by: dleverton
Priority: Sometime Milestone:
Component: repositories/e Version: scm
Keywords: Cc:
Blocked By: Blocking:
Distribution:

Description

Some tarballs contain files with restrictive permissions (for example, read-only). Portage works around this by changing to permissions of all the files in the current directory and subdirectories after every unpack. r3455 added the same to Paludis, but it's rather crude as it affects any files that were there before unpacking. It would be nice to find a cleaner way, but unfortunately tar at least doesn't seem to give enough control over permissions of unpacked files (the choice is permissions from the tarball, or permissions from the tarball & ~unmask).

Note: See TracTickets for help on using tickets.