We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16468e1 commit 1196443Copy full SHA for 1196443
osgtest/library/core.py
@@ -641,7 +641,7 @@ def check_file_ownership(file_path, owner_name):
641
owner_uid = pwd.getpwnam(owner_name)
642
try:
643
file_stat = os.stat(file_path)
644
- return (file_stat.st_uid == owner_uid and
+ return (file_stat.st_uid == owner_uid.pw_uid and
645
stat.S_ISREG(file_stat.st_mode))
646
except OSError: # file does not exist
647
return False
0 commit comments