From: Ansgar Burchardt Date: Sat, 15 Dec 2012 08:26:48 +0000 (+0100) Subject: daklib/policy.py: REJECT.* files should not be executable X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea8715a28357e82333579374c22ac5251614a50;p=dak daklib/policy.py: REJECT.* files should not be executable --- diff --git a/daklib/policy.py b/daklib/policy.py index 151cc9b6..41c9c1fe 100644 --- a/daklib/policy.py +++ b/daklib/policy.py @@ -196,7 +196,7 @@ class PolicyQueueUploadHandler(object): fn = os.path.join(self.upload.policy_queue.path, 'COMMENTS', fn1) try: - fh = os.open(fn, os.O_CREAT | os.O_EXCL | os.O_WRONLY) + fh = os.open(fn, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644) os.write(fh, 'NOTOK\n') os.write(fh, 'From: {0} <{1}>\n\n'.format(utils.whoami(), cnf['Dinstall::MyAdminAddress'])) os.write(fh, reason)