Bug 58950 - konqueror does not preserve file time stamps during untar of tar archives
Summary: konqueror does not preserve file time stamps during untar of tar archives
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: tar (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 64461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-25 23:58 UTC by ndeb
Modified: 2010-03-12 20:29 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ndeb 2003-05-25 23:58:48 UTC
Version:           3.1.2 (using KDE 3.1.2)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

In konqueror, click on a local file.tar.bz2 archive file. The contents of the archive are displayed in konqueror with the correct timestamps. Now copy the contents of this archive (as seen in konqueror) to a directory. The copied files have time stamps set to current time. 

This behavior is very different from "tar -jxf  file.tar.bz2" (which preserves time stamps). It appears that the copy operation is the culprit and instead of being analogous to "cp -p", its doing just "cp" and causing the time stamps to change. The time stamps must remain the same.
Comment 1 Nicolas Goutte 2005-09-17 10:59:43 UTC
See also bug #55804 (for all KIO slaves)
Comment 2 Nicolas Goutte 2005-09-18 03:10:59 UTC
*** Bug 64461 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas Goutte 2006-02-24 11:15:02 UTC
See the similar bug #122609 for zip.
Comment 4 ndeb 2007-07-20 19:08:18 UTC
Using kde-3.5.7. In come cases, the time stamp becomes "Dec 31  1969" after extraction with konqueror from a tar.bz2 archive. If the extraction is done from the command-line with the "tar" command then the same folder gets a current time stamp, which is more sensible.
Comment 5 David Faure 2007-07-23 12:29:21 UTC
That's a different bug I think (now a bug in KTar itself, not in the KIO copy framework).
Do you have a sample tar file which shows this behavior?
Comment 6 ndeb 2007-07-25 08:37:27 UTC
The sample file is http://intellinuxwireless.org/mac80211/downloads/mac80211-9.0.2.tgz

When I extract this thru konqueror, these sub-dirs inside the mac80211-9.0.2 dir have the odd time-stamps ->

drwxrwxr-x 4 ndeb ndeb   120 Dec 31  1969 origin/
drwxrwxr-x 2 ndeb ndeb  1232 Dec 31  1969 patches/
drwxrwxr-x 2 ndeb ndeb  1856 Dec 31  1969 pending/
drwxrwxr-x 2 ndeb ndeb   368 Dec 31  1969 scripts/
drwxrwxr-x 2 ndeb ndeb    72 Dec 31  1969 stubs/
Comment 7 ndeb 2007-07-25 18:45:43 UTC
To comment 5, doesn't kTar call tar itself?
Comment 8 Dario Andres 2009-07-22 18:45:23 UTC
Here using:

Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76
        Date:   Fri Jun 26 13:45:37 2009 +0200)
KDE: 4.3.61 (KDE 4.3.61 (KDE 4.4 >= 20090717))
kdelibs svn rev. 999250 / kdebase svn rev. 999250
on ArchLinux i686 - Kernel 2.6.30.1

- I downloaded the testcase file on comment 6
- I opened it using Dolphin (option "browse through archives" enabled)
The date&times were the same as described on comment 6
- I selected the files and copied them
- I went to another dir and pasted the files
- At the first moments, the files are pasted with the current timestamp, but after 1/2 second the proper dates appeared

I also checked this is some other random tar.gz files

So, it is working for me here. Can anyone else confirm this ? Thanks
Comment 9 Bartosz Brachaczek 2010-03-11 00:26:35 UTC
(In reply to comment #8)
> So, it is working for me here. Can anyone else confirm this ? Thanks

Yes, works perfectly as of KDE SC 4.4.1.