dbus-exporter: Set explicit mode on output directory

Otherwise the created directory might have the sticky bit or the setgid
bit set as these are inherited from the parent directory.
This commit is contained in:
Daan De Meyer 2024-03-21 19:14:56 +01:00 committed by Yu Watanabe
parent ec0bc263d7
commit f680c4c95e

View File

@ -36,6 +36,8 @@ def main():
args = parser.parse_args()
args.output.mkdir(exist_ok=True)
# Make sure we don't inherit any setgid/setuid bit or such.
args.output.chmod(mode=0o755)
for exe in args.executables:
extract_interfaces_xml(args.output, exe)