提交 7de6bf94 编写于 作者: T Torsten Werner

Ignore 'Operation not permitted' error.

Signed-off-by: NTorsten Werner <twerner@debian.org>
上级 e2e147e3
......@@ -2432,7 +2432,12 @@ distribution."""
self.force_reject(reject_files)
# Change permissions of the .changes file to be world readable
os.chmod(changesfile, os.stat(changesfile).st_mode | stat.S_IROTH)
try:
os.chmod(changesfile, os.stat(changesfile).st_mode | stat.S_IROTH)
except OSError as (errno, strerror):
# Ignore 'Operation not permitted' error.
if errno != 1:
raise
# If we fail here someone is probably trying to exploit the race
# so let's just raise an exception ...
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册