Package: alien
Version: 8.62
Severity: normal
Tags: patch

Converting an RPM results in alien changing the permissions of the working
directory to 755.

It looks like unpack in Alien/Package/Rpm.pm is broken.  It find's files in
relative to $workdir but changes permissions relative to the current working
dir.

Perhaps this is what's needed? This should properly fix #340588 too.

--- Rpm.pm.orig 2006-02-14 11:12:22.000000000 +0000
+++ Rpm.pm      2006-02-14 11:12:56.000000000 +0000
@@ -166,7 +166,7 @@
        foreach my $file (`cd $workdir; find ./`) {
                chomp $file;
                if (! $seenfiles{$file} && -d $file && ! -l $file) {
-                       $this->do("chmod 755 $file");
+                       $this->do("chmod 755 $workdir/$file");
                }
        }

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.1
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages alien depends on:
ii  cpio                      2.6-10         GNU cpio -- a program to manage ar
ii  debhelper                 5.0.22         helper programs for debian/rules
ii  dpkg-dev                  1.13.13        package building tools for Debian
ii  make                      3.80+3.81.b4-1 The GNU version of the "make" util
ii  perl                      5.8.7-10       Larry Wall's Practical Extraction 
ii  rpm                       4.4.1-7        Red Hat package manager

alien recommends no packages.

-- no debconf information

_____________________________________________________________________
The message in this transmission is sent in confidence for the attention of the 
addressee only and should not be disclosed to any other party. Unauthorised 
recipients are requested to preserve this confidentiality. Please advise the 
sender if the addressee is not resident at the receiving end.  Email to and 
from Arcom is automatically monitored for operational and lawful business 
reasons.

This message has been virus scanned by MessageLabs.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to