Mandriva

Return to the main archive index.

Custom Search

Mandrake Linux Archives: cooker@mandrivalinux.org

Mandrake Linux: cooker@mandrivalinux.org


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]


erwin.vandevelde@gmail.com wrote:

User ID: 23990, 9 bugs reported (2 fixed, 2 duplicate, 1 invalid), 14 comments.

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

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 *"

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 fine

What is happening in the first case???


That 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"



Date Index | Thread Index

Looking for a job?



Advertisement (via La Vignette)