]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
python/Makefile.am: fix file permissions of python/suricata/config/defaults.py
authorAndreas Dolp <dev@andreas-dolp.de>
Wed, 29 Oct 2025 20:43:04 +0000 (21:43 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 4 Nov 2025 20:48:21 +0000 (20:48 +0000)
The install command, by default, sets 0755 if -m is not specified, so the
file python/suricata/config/defaults.py will be marked as an executable,
though it isn't.

(cherry picked from commit fcbae97a1fe0e923f1d3ccbf60e4ef2a3eac854a)

python/Makefile.am

index 32bf43f825a8225f154eda16d2781a072bc59aea..581e48b3d3b4cbd9ec5c0be93bcad808c7b343fe 100644 (file)
@@ -8,7 +8,7 @@ if HAVE_PYTHON
 
 install-exec-local:
        install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config"
-       install suricata/config/defaults.py \
+       install -m 0644 suricata/config/defaults.py \
                "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config/defaults.py"
 
 uninstall-local: