From e2bdc8a44687c72c462876eee2b18453dfdef452 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 2 Apr 2024 12:42:48 +0200 Subject: fix logic error in AtLocation.stat Fixes: 1c265b6e11c3 ("add os.stat wrapper AtLocation.stat") --- linuxnamespaces/atlocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3