Commit 4de8dd70 authored by Valentin Samir's avatar Valentin Samir

Check that binaries are executables

parent 78c5579c
......@@ -614,8 +614,8 @@ if __name__ == '__main__':
RNDC = config["rndc"]
for path in [DNSSEC_SETTIME, DNSSEC_DSFROMKEY, DNSSEC_KEYGEN, RNDC]:
if not os.path.isfile(path):
sys.stderr.write("%s not found. Is bind9utils installed ?\n" % path)
if not os.path.isfile(path) or not os.access(path, os.X_OK):
sys.stderr.write("%s not found or not executable. Is bind9utils installed ?\n" % path)
sys.exit(1)
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment