]> 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)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Mar 2022 18:49:37 +0000 (18:49 +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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/ids-functions.pl

index 53ca1bdd495addd4a187d093eaa9d5a4728eb8ae..e8793f8be24c0996fd8dd4015abaaf520412381a 100644 (file)
@@ -475,6 +475,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;