summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
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