summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-06 23:32:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-06 23:32:55 +0000
commit64b6a8f0e37e6eecf15639a4b798391da18ee0b0 (patch)
tree7d987831271e8d49c7b52017bdb462065f3a481d /perl-install/common.pm
parentcc007017f9dbb2c6fb7cc74feb1f557f454e0092 (diff)
downloaddrakx-64b6a8f0e37e6eecf15639a4b798391da18ee0b0.tar
drakx-64b6a8f0e37e6eecf15639a4b798391da18ee0b0.tar.gz
drakx-64b6a8f0e37e6eecf15639a4b798391da18ee0b0.tar.bz2
drakx-64b6a8f0e37e6eecf15639a4b798391da18ee0b0.tar.xz
drakx-64b6a8f0e37e6eecf15639a4b798391da18ee0b0.zip
common::secured_file() is a wrapper around c::is_secure_file()
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index ce86aa4a6..f44a0c0bf 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -207,6 +207,12 @@ sub set_alternative {
sub files_exist { and_(map { -f "$::prefix$_" } @_) }
+sub secured_file {
+ my ($f) = @_;
+ c::is_secure_file($f) or die "can't ensure a safe $f";
+ $f;
+}
+
sub set_permissions {
my ($file, $perms, $owner, $group) = @_;
# We only need to set the permissions during installation to be able to