From 2f3db91df56d7782cb10133beb1adced4d93a9b8 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 26 Jun 2009 09:36:54 +0200 Subject: [PATCH] [entropy.spm] on quickpkg copy file modes 1:1 It happened that setgid and setuid bits were not copied by default. This commit fixes it. --- libraries/entropy/spm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/entropy/spm.py b/libraries/entropy/spm.py index 404a80683..057a22783 100644 --- a/libraries/entropy/spm.py +++ b/libraries/entropy/spm.py @@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' import os +import stat import sys import shutil import tempfile @@ -516,6 +517,7 @@ class PortagePlugin: tarinfo = tar.gettarinfo(lpath, arcname) if stat.S_ISREG(exist.st_mode): + tarinfo.mode = stat.S_IMODE(exist.st_mode) tarinfo.type = tarfile.REGTYPE f = open(path) try: