Fix incorrect os.stat usage. (#8964)

This commit is contained in:
Oliver Chang 2022-11-10 15:17:23 +11:00 committed by GitHub
parent 8b9cf2d081
commit d104f15f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -136,9 +136,8 @@ class FuzzTarget: # pylint: disable=too-many-instance-attributes
# Set permissions of testcase to be the same as summary so that we're sure
# it can be read by necessary users.
permissions_mode = os.stat(bug_summary_artifact_path)
os.chmod(target_reproducer_path, permissions_mode)
permissions_mode = os.stat(bug_summary_artifact_path).st_mode
os.chmod(target_reproducer_path, permissions_mode & 0o777)
return target_reproducer_path
def prune(self):