Changeset 249027 in webkit
- Timestamp:
- Aug 22, 2019 2:28:29 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r249019 r249027 1 2019-08-22 Kate Cheney <katherine_cheney@apple.com> 2 3 Logging in FileSystem::deleteFile should avoid logging unsurprising errors 4 https://bugs.webkit.org/show_bug.cgi?id=200831 5 6 Reviewed by Chris Dumez. 7 8 To avoid overlogging unnecessary information, added a check to avoid logging 9 ENOENT (file not found) errors. 10 11 * wtf/posix/FileSystemPOSIX.cpp: 12 (WTF::FileSystemImpl::deleteFile): 13 1 14 2019-08-22 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WTF/wtf/posix/FileSystemPOSIX.cpp
r248822 r249027 74 74 // unlink(...) returns 0 on successful deletion of the path and non-zero in any other case (including invalid permissions or non-existent file) 75 75 bool unlinked = !unlink(fsRep.data()); 76 if (!unlinked )76 if (!unlinked && errno != ENOENT) 77 77 LOG_ERROR("File failed to delete. Error message: %s", strerror(errno)); 78 78
Note: See TracChangeset
for help on using the changeset viewer.