[Webkit-unassigned] [Bug 219138] New: [WTF] Fix a condition to check if statvfs() succeeds in getVolumeFreeSpace()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 18 18:04:57 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219138

            Bug ID: 219138
           Summary: [WTF] Fix a condition to check if statvfs() succeeds
                    in getVolumeFreeSpace()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Yousuke.Kimoto at sony.com

statvfs() returns Zero on success, and -1 is returned on error.

But getVolumeFreeSpace() of FileSystemPOSIX.cpp treats a non Zero value as success case. The condition is wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201119/1216e593/attachment.htm>


More information about the webkit-unassigned mailing list