Mandrake Linux Archives: cooker@mandrivalinux.org
Mandrake Linux: cooker@mandrivalinux.org
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: John Campbell
- Subject: Re: [Cooker] [Bug 18945] [kdebase] New: TAR on directories
- Date: 30 Sep 2005 08:20:57 -0000
erwin.vandevelde@gmail.com wrote:
User ID: 23990, 9 bugs reported (2 fixed, 2 duplicate, 1 invalid), 14 comments.You know that's a kind of dangerous habit to get into. You're just lucky tar doesn't attempt to recursively add "x.tgz" to "x.tgz" And you did this as root too... You should be using something like "tar zcf /somepath/x.tgz *"
http://qa.mandriva.com/show_bug.cgi?id=18945
Distribution: cooker Summary: TAR on directories Product: kdebase Version: 3.4.2-51mdk Platform: All Status: UNCONFIRMED Severity: normal Priority: normal Component: kdebase AssignedTo: kde@mandriva.com ReportedBy: erwin.vandevelde@gmail.com
I found the following weird bug in KDE applications (tested in Konqueror and Ark, I suspect it must be a more basic KDE problem): I had a directory with some files and 2 subdirectories (e.g. dir1 and dir2, containing files too) and executed in the base directory:
# tar zcf x.tgz * Opening in Konqueror showed the subdirectories twice (all files were OK) Extracting x.tgz with Ark gave read errors on the subdirectories
But still, I attempted to duplicate your problem. I've never used "Ark" myself, preferring the command-line "tar"
Try "tar tvzf x.tgz" to see the unmangled file listing"
I couldn't really duplicate your problem. Tar stores the directory names as their own entries so you might be seeing the "dir1" and "dir1/file" entries.
Are you sure you didn't attempt to untar your files over the old ones? That would cause the directory creation to fail, as they already exist.
# tar zcf dir1 dir2 *.* Opening in Konqueror showed the subdirectories once and all files were OK Extracting x.tgz with Ark worked fineThat command line is just too strange... It's a DOS-ism. "*.*" isn't normal. It should also fail...as you're trying to create a tar file named "dir1"
What is happening in the first case???
- References:
- [Cooker] [Bug 18945] [kdebase] New: TAR on directories
- From: erwin . vandevelde
- [Cooker] [Bug 18945] [kdebase] New: TAR on directories
- Prev by Date: Re: [Cooker] [Bug 18944] [kdebase] UNCONFIRMED: TAR on directories
- Next by Date: Re: [Cooker] question about mondo and mindi
- Previous by thread: [Cooker] [Bug 18945] [kdebase] New: TAR on directories
- Next by thread: [Cooker] [Bug 18945] [kdebase] RESOLVED: TAR on directories
- Index(es):
