Bug 137598

Summary: Style fixes in FTPDirectoryParser
Product: WebKit Reporter: Adrien Destugues <pulkomandy>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: annevk, commit-queue, japhet, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch ossy: review-

Description Adrien Destugues 2014-10-10 01:23:15 PDT
Style fixes in FTPDirectoryParser
Comment 1 Adrien Destugues 2014-10-10 01:23:52 PDT
Created attachment 239607 [details]
Patch
Comment 2 WebKit Commit Bot 2014-10-10 01:26:03 PDT
Attachment 239607 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Adrien Destugues 2014-10-10 03:01:13 PDT
Created attachment 239613 [details]
Patch
Comment 4 Csaba Osztrogonác 2014-10-10 03:37:40 PDT
Comment on attachment 239613 [details]
Patch

We don't do only style fixes, because it would broke the git/svn blame of the files.
( https://lists.webkit.org/pipermail/webkit-dev/2011-October/018324.html )
Comment 5 Csaba Osztrogonác 2014-10-10 03:50:18 PDT
Comment on attachment 239613 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=239613&action=review

> Source/WebCore/loader/FTPDirectoryParser.cpp:1035
> +                    int now = (state.nowFTPTime.tm_mon << 5) + state.nowFTPTime.tm_mday;
> +                    int modifiedTime = (state.modifiedTime.tm_mon << 5) + state.modifiedTime.tm_mday;
> +                    if (now < modified)
> +                        result.modifiedTime.tm_year--;

It isn't a style change only, you introduced new temporary variables.
Comment 6 Adrien Destugues 2014-10-10 04:08:19 PDT
Ok, my goal is to submit a fix for https://bugs.webkit.org/show_bug.cgi?id=45113 (which is just a one-line fix). Should I ignore style issues in the file then?

The code could also use some refactoring, but there is no testsuite for FTP dir support and I'm not sure if it's possible to add that without an actual collection of FTP servers. So I'm not willing to do more invasive changes there.
Comment 7 Anne van Kesteren 2023-12-23 02:09:11 PST

*** This bug has been marked as a duplicate of bug 221675 ***