]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ids-functions.pl: Do not try to chown files while extracting them.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 3 Mar 2022 18:55:59 +0000 (19:55 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Mar 2022 14:28:36 +0000 (14:28 +0000)
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 <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index bf02bcbaa580d5f239b93a44f42bccefe34d0b8f..d15973a38e854679e8b82f16f8d566dffed8711f 100644 (file)
@@ -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;