summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-11-25 11:03:14 +0000
committerLars Wirzenius <liw@liw.fi>2012-11-25 11:03:14 +0000
commit2aea9fcadb6227fa441e464170a3c5c5dc7b4cbe (patch)
tree36233a5ecf86ae19a8b0c5b6d0db0fa0df5a1a1b
parentd7df89b2ecb5066eb2149bc76fc70c6f7f3214a5 (diff)
downloadobnam-2aea9fcadb6227fa441e464170a3c5c5dc7b4cbe.tar.gz
Exclude from test coverage
-rw-r--r--obnamlib/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/metadata.py b/obnamlib/metadata.py
index baa5e29f..3153c6af 100644
--- a/obnamlib/metadata.py
+++ b/obnamlib/metadata.py
@@ -242,7 +242,7 @@ def set_metadata(fs, filename, metadata, getuid=None):
else:
# If we are not the owner, and not root, do not restore setuid/setgid.
mode = metadata.st_mode
- if getuid() not in (0, metadata.st_uid):
+ if getuid() not in (0, metadata.st_uid): # pragma: no cover
mode = mode & (~stat.S_ISUID)
mode = mode & (~stat.S_ISGID)
fs.chmod(filename, mode)