From: Stefan Schantl Date: Thu, 3 Mar 2022 18:55:59 +0000 (+0100) Subject: ids-functions.pl: Do not try to chown files while extracting them. X-Git-Tag: v2.27-core165~15^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8353e28ad271c0c8d604dc147b4ce0ff399c1530;p=ipfire-2.x.git ids-functions.pl: Do not try to chown files while extracting them. We are almost running as an unprivileged user and therfore have not the permissions to do this. This will save us a lot of confusion error messages. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index bf02bcbaa5..d15973a38e 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -483,6 +483,9 @@ sub extractruleset ($) { # Load perl module to deal with archives. use Archive::Tar; + # Disable chown functionality when uncompressing files. + $Archive::Tar::CHOWN = "0"; + # Load perl module to deal with files and path. use File::Basename;