<table><tr><td style="">wbauer created this revision.<br />wbauer added a reviewer: Frameworks.<br />wbauer added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />wbauer requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21952">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p><tt style="background: #ebebeb; font-size: 13px;">sPartInfo</tt> refers to the .part file which might not exist in the first place, resulting in a wrong/invalid access time.<br />
To avoid this, take the access time from the actual destination file instead.</p>
<p>CCBUG: 374420</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run <tt style="background: #ebebeb; font-size: 13px;">kioclient5 copy "ftp://upload.kde.org/README" /tmp/file</tt> and check the times with <tt style="background: #ebebeb; font-size: 13px;">stat</tt>.</p>
<p>Before:<br />
$ kioclient5 copy "ftp://upload.kde.org/README" /tmp/file<br />
$ LANG=C stat /tmp/file</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">File: /tmp/file
Size: 594 Blocks: 8 IO Block: 4096 regular file</pre></div>
<p>Device: 39h/57d Inode: 91811 Links: 1<br />
Access: (0644/-rw-r--r--) Uid: ( 1000/ wolfi) Gid: ( 100/ users)<br />
Access: 1970-01-01 00:00:00.000000000 +0100<br />
Modify: 2013-04-27 00:00:00.000000000 +0200<br />
Change: 2019-06-21 11:09:38.980032795 +0200<br />
Birth: -</p>
<p>(note the "Access" time)</p>
<p>With this patch:<br />
$ kioclient5 copy "ftp://upload.kde.org/README" /tmp/file<br />
$ LANG=C stat /tmp/file</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">File: /tmp/file
Size: 594 Blocks: 8 IO Block: 4096 regular file</pre></div>
<p>Device: 39h/57d Inode: 91947 Links: 1<br />
Access: (0644/-rw-r--r--) Uid: ( 1000/ wolfi) Gid: ( 100/ users)<br />
Access: 2019-06-21 11:28:49.000000000 +0200<br />
Modify: 2013-04-27 00:00:00.000000000 +0200<br />
Change: 2019-06-21 11:28:49.529808792 +0200<br />
Birth: -</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21952">https://phabricator.kde.org/D21952</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/ftp/ftp.cpp</div></div></div><br /><div><strong>To: </strong>wbauer, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, Dolphin, LeGast00n, michaelh, ngraham, bruns<br /></div>