* Fixed an uninitialized value when converting from a .src.rpm.

This commit is contained in:
joey
2000-05-30 04:44:06 +00:00
parent 2ab8c2557c
commit 13f031a9bf
2 changed files with 8 additions and 1 deletions

View File

@@ -189,8 +189,9 @@ sub unpack {
# last file, after all! Second, it makes the -d
# test below fire, which saves us from trying to
# fix a parent directory twice.
($file)=$file=~m:(.*)/.*?:;
$file=$1 if $file=~m:(.*)/.*?:;
my $dircollect='';
foreach my $dir (split(/\//,$file)) {
$dircollect.="$dir/";
# Use a hash to prevent duplicate chmods.