diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-04-02 12:42:48 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-04-02 12:42:48 +0200 |
commit | e2bdc8a44687c72c462876eee2b18453dfdef452 (patch) | |
tree | 6f6c7f5f6b978e790a660efc9a5b8d0253090ac0 | |
parent | 6f58c23944dae4c15358aa671492f93e0572fa47 (diff) | |
download | python-linuxnamespaces-e2bdc8a44687c72c462876eee2b18453dfdef452.tar.gz |
fix logic error in AtLocation.stat
Fixes: 1c265b6e11c3 ("add os.stat wrapper AtLocation.stat")
-rw-r--r-- | linuxnamespaces/atlocation.py | 2 |
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" |