diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-09-30 14:04:22 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-09-30 14:04:22 +0000 |
commit | e482e21f6255ea558fe6bf7aae62f45e973b0c3c (patch) | |
tree | c677944629daf0bca45c0734869211ecd3c969b3 /genhdlist | |
parent | 1d8305349363cadd4046da7bdc14d752f427b50a (diff) | |
download | rpmtools-e482e21f6255ea558fe6bf7aae62f45e973b0c3c.tar rpmtools-e482e21f6255ea558fe6bf7aae62f45e973b0c3c.tar.gz rpmtools-e482e21f6255ea558fe6bf7aae62f45e973b0c3c.tar.bz2 rpmtools-e482e21f6255ea558fe6bf7aae62f45e973b0c3c.tar.xz rpmtools-e482e21f6255ea558fe6bf7aae62f45e973b0c3c.zip |
Safety check: make sur temporary directory is owned by user
Diffstat (limited to 'genhdlist')
-rw-r--r-- | genhdlist | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -55,6 +55,9 @@ my @dir = @ARGV ? @ARGV : ("."); grep { m!^/! } @dir and die "Directories to parse should be relative\n"; $dest and do { chdir $dest or die "Can't chdir in directory $dest\n" }; + +-o $tmpdir or + die "$tmpdir is not owned by you, bailing out\n"; rmtree($tmpdir) unless $noclean; mkpath($tmpdir); |