Operating System - HP-UX
1821984 Members
3292 Online
109638 Solutions
New Discussion юеВ

Limitation in path/filename with tar extraction?

 
Craig Smith_13
Frequent Advisor

Limitation in path/filename with tar extraction?

Hi all,

I downloaded Trolltech's Qt4.10 cross-platform development tool and extracted the .tar.gz with gzip then tar. It appears when extracting from the tar (xvf), there is a limitation in character length of path + filename. When doing a tar tvf, the filenames look fine and I can rename the file(s) to their original name.

To get around this, I extracted it with winzip on a PC and then ftped everything over the top of the original hp extraction.

Is there a patch that is available to resolve this?

HP-UX B.11.11
C3000


Thanks.
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Limitation in path/filename with tar extraction?

Craig,
what error do you get if you try to extract with tar?

I always thought path length was 256, but I have never had a longer path name, so never tested it.
Steven E. Protter
Exalted Contributor

Re: Limitation in path/filename with tar extraction?

Shalom Craig,

Yes, its an OS limit. Anything over 256 will make the untar cough up fur balls.

You may be able to repackage the tar with gnu tar.

I like your workaround. It works doesn't it?

Sounds like you are done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: Limitation in path/filename with tar extraction?

Hello,

255 char is OS limit, If you want to patch your tar, PHCO_28992 is available. I suspect you have this patch on your system .. It gives support for 8GB files.

http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_28992&context=hpux:800:11:11

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Craig Smith_13
Frequent Advisor

Re: Limitation in path/filename with tar extraction?

Thanks all,

That's what I thought also, but the path length is only around 78. I'm not receiving any errors, however when I tried compiling the program(s), it couldn't find the files. Here is an example of one of the paths, along with the filenames:

/qt/qt-x11-commercial-src-4.1.0/tools/designer/src/components/signalsloteditor

signalsloteditor_instanc
should be: signalsloteditor_instance.cpp


signalsloteditor_instanc
should be: signalsloteditor_instance.cpp


Yes I get it to compile by copying the extracted files over from a PC, but it seemed weird that the filenames are getting cropped during the the un-taring process.

Craig.