summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-04-02 12:42:48 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-04-02 12:42:48 +0200
commite2bdc8a44687c72c462876eee2b18453dfdef452 (patch)
tree6f6c7f5f6b978e790a660efc9a5b8d0253090ac0 /linuxnamespaces
parent6f58c23944dae4c15358aa671492f93e0572fa47 (diff)
downloadpython-linuxnamespaces-e2bdc8a44687c72c462876eee2b18453dfdef452.tar.gz
fix logic error in AtLocation.stat
Fixes: 1c265b6e11c3 ("add os.stat wrapper AtLocation.stat")
Diffstat (limited to 'linuxnamespaces')
-rw-r--r--linuxnamespaces/atlocation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxnamespaces/atlocation.py b/linuxnamespaces/atlocation.py
index 6b28ec3..0257014 100644
--- a/linuxnamespaces/atlocation.py
+++ b/linuxnamespaces/atlocation.py
@@ -432,7 +432,7 @@ class AtLocation:
return os.stat(self.fd)
follow_symlinks = True
if self.flags == AtFlags.AT_SYMLINK_NOFOLLOW:
- follow_symlinks = True
+ follow_symlinks = False
elif self.flags != AtFlags.NONE:
raise NotImplementedError(
"stat is not supported for an AtFlags with given flags"