|
|
tar truncates end of file name
Hello,
I apply tar xvf mytarball.tar and when go deep into the new directory I can
see one file misses expected suffix.
The OS is Solaris 10.
When I unwrapped the tar with 7-zip on windows the relevant file was
ok.
Interestingly on Solaris 8 the same problem was with a different file
name.
Could someone suggest the possible cause?
Thank you.
--
rahed
|
|
0
|
|
|
|
Reply
|
rahed
|
1/10/2007 5:18:05 PM |
|
rahed wrote:
>
> Could someone suggest the possible cause?
>
I would just use GNU tar (gtar) instead.
|
|
0
|
|
|
|
Reply
|
Vahid
|
1/11/2007 3:44:14 AM
|
|
There is a character limiation within Solaris' version of TAR. If you
look in your directory you will see another file with the names of the
files that it munged. Use GNU tar.
On Jan 10, 11:18 am, rahed <rah...@gmail.com> wrote:
> Hello,
>
> I apply tar xvf mytarball.tar and when go deep into the new directory I can
> see one file misses expected suffix.
>
> The OS is Solaris 10.
>
> When I unwrapped the tar with 7-zip on windows the relevant file was
> ok.
>
> Interestingly on Solaris 8 the same problem was with a different file
> name.
>
> Could someone suggest the possible cause?
>
> Thank you.
>
> --
> rahed
|
|
0
|
|
|
|
Reply
|
mediis
|
1/11/2007 5:50:17 AM
|
|
rahed wrote:
> Hello,
> I apply tar xvf mytarball.tar and when go deep into the new directory I can
> see one file misses expected suffix.
> The OS is Solaris 10.
Try using the E switch when making the tar file on Solaris. "E" is
documented in the
man pages. Once you make the tar file without E though you cant use E
to extract
after the fact if file names or sizes exceed the non E limits.
If the archive is made by another tar well you may have to use gtar or
star or
cpio or... whatever works
|
|
0
|
|
|
|
Reply
|
gerryt
|
1/11/2007 6:39:37 AM
|
|
rahed <raherh@gmail.com> writes:
> Hello,
>
> I apply tar xvf mytarball.tar and when go deep into the new directory I can
> see one file misses expected suffix.
Thanks all for help.
--
Radek
|
|
0
|
|
|
|
Reply
|
rahed
|
1/11/2007 10:09:01 AM
|
|
In article <uwt3uiywi.fsf@gmail.com>, rahed <raherh@gmail.com> wrote:
>I apply tar xvf mytarball.tar and when go deep into the new directory I can
>see one file misses expected suffix.
>
>The OS is Solaris 10.
Did you create the archive with Solaris "tar"?
What is the path length of the file in question?
Note that Solaris "tar" does never silently truncate path names.
>When I unwrapped the tar with 7-zip on windows the relevant file was
>ok.
Why should this happen?
Solaris 10 tar is working correctly, so it is able to unpack what it did pack
before.
The old tar format is limited to a max path name length between 100 chars
and 256 chars. Any sane tar implementation warns you if there are files that
cannot be archived because of path length limitations.
Is it possible that you did create the achive with something that
calls itself "tar" but really is no TAR implementation (like e.g. GNU "tar")?
If you really need to archive filenames that cannot fit into a POSIX.1-1988
TAR archive, use star ftp://ftp.berlios.de/pub/star/alpha/ and use
star H=pax or star H=exustar, you then create POSIX.1-2001 compliant archives
that have no path length limitation (well, the limit is 8 billion chars ;-)
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
1/11/2007 12:05:40 PM
|
|
In article <1168487053.669142.165030@i39g2000hsf.googlegroups.com>,
Vahid Moghaddasi <moghaddasi@gmail.com> wrote:
>rahed wrote:
>>
>> Could someone suggest the possible cause?
>>
>I would just use GNU tar (gtar) instead.
It is a really bad idea to recommend GNU tar because GNU tar by default
does not create tar archives but GNU pproprietary archives that
are incompatible to POSIX.
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
1/11/2007 12:07:09 PM
|
|
In article <1168494617.337848.322550@i39g2000hsf.googlegroups.com>,
mediis <mediis@gmail.com> wrote:
>There is a character limiation within Solaris' version of TAR. If you
>look in your directory you will see another file with the names of the
>files that it munged. Use GNU tar.
Sun tar by default has a limit of 256 chars for path names.
GNU tar creates non-POSIX-compliant archives in case that the path
name lenght is > 100 chars.
Do you really prefer a non-compliant archiver that causes problems
bacause of it's non-compliance?
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
1/11/2007 12:09:15 PM
|
|
In article <1168497577.641638.66880@o58g2000hsb.googlegroups.com>,
gerryt <lepsysinc@gmail.com> wrote:
>Try using the E switch when making the tar file on Solaris. "E" is
>documented in the
>man pages. Once you make the tar file without E though you cant use E
>to extract
>after the fact if file names or sizes exceed the non E limits.
The archives created by Sun tar -E may only be upacked by "Sun tar" and "star".
>If the archive is made by another tar well you may have to use gtar or
>star or
>cpio or... whatever works
gtar is not supporting all you may need and the tar part of the usual
"cpio" implementations is not really good.
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
1/11/2007 12:11:41 PM
|
|
js@cs.tu-berlin.de (Joerg Schilling) writes:
> Did you create the archive with Solaris "tar"?
> What is the path length of the file in question?
>
> Note that Solaris "tar" does never silently truncate path names.
I did only tar xvf not cvf and exactly after gunzip on a cpan archive here:
http://search.cpan.org/CPAN/authors/id/D/DK/DKAMHOLZ/Catalyst-Plugin-Authentication-Store-DBIC-0.07.tar.gz
If I remember correctly, a file Backend.pm missed .pm. Using GNU tar on
this archive worked without any issues.
--
Radek
|
|
0
|
|
|
|
Reply
|
rahed
|
1/11/2007 7:30:07 PM
|
|
In article <ubql5l5ts.fsf@gmail.com>, rahed <raherh@gmail.com> wrote:
>js@cs.tu-berlin.de (Joerg Schilling) writes:
>
>> Did you create the archive with Solaris "tar"?
>> What is the path length of the file in question?
>>
>> Note that Solaris "tar" does never silently truncate path names.
>
>I did only tar xvf not cvf and exactly after gunzip on a cpan archive here:
>
>http://search.cpan.org/CPAN/authors/id/D/DK/DKAMHOLZ/Catalyst-Plugin-Authentication-Store-DBIC-0.07.tar.gz
>
>If I remember correctly, a file Backend.pm missed .pm. Using GNU tar on
>this archive worked without any issues.
You have been fooled by the creators of the archive :-(
This is _not_ a TAR archive, it is rather a GNU "tar" archive which is a
proprietary archive type that has some similarities with a real TAR archive.
As the longest Path name is 105 characters, you are hit by the incompatible
way of archiving long path names used with GNU "tar". This archive may only
unpacked correctly by GNU tar and by star, as star knows about GNU "tar".
You should make a bug report against the archive and send it to the creator
of the archive.
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
|
|
0
|
|
|
|
Reply
|
js
|
1/11/2007 9:24:41 PM
|
|
|
10 Replies
1385 Views
(page loaded in 0.004 seconds)
Similiar Articles: tar truncates end of file name - comp.unix.solarisHello, I apply tar xvf mytarball.tar and when go deep into the new directory I can see one file misses expected suffix. The OS is Solaris 10. When ... TAR: arg list too long - comp.unix.solarisTar transfer and delete files - comp.unix.solaris tar truncates end of file name - comp.unix.solaris Tar transfer and delete files - comp.unix.solaris Operating System ... Tar transfer and delete files - comp.unix.solarisTAR: arg list too long - comp.unix.solaris Tar transfer and delete files - comp.unix.solaris tar truncates end of file name - comp.unix.solaris Tar transfer and delete ... 7-zip switches - comp.compressiontar truncates end of file name - comp.unix.solaris When I unwrapped the tar with 7-zip on windows the relevant file was ok. ... googlegroups.com>, gerryt <lepsysinc@gmail ... truncate file - comp.lang.c++.moderatedtar truncates end of file name - comp.unix.solaris Hello, I apply tar xvf mytarball.tar and when go deep into the new directory I can see one file misses expected suffix. Correct syntax for bzip and gnu tar - comp.sys.hp.hpux... gzip-compress a tar archive, you end with a '.tar.gz' double extension. When the file ... How to create a tar + gzip from a listing of file names. - comp ... Correct ... extract single file without read all tar - comp.unix.solaris ...... read, > independent if the file is at start, middle or end of file. tar ... How to create a tar + gzip from a listing of file names. - comp ... extract single file without ... tar > 2GB file - comp.sys.hp.hpux... 3IEgbGh0Qx8iYyHI0XnjgCfcVla xQbWxlO/F1ELn7PweXUz4kU= =pmlO -----END ... How to create a tar + gzip from a listing of file names. - comp ... tar > 2GB file - comp.sys.hp.hpux ... gzip-compressing an in-memory string using zlib 1.2.3 - comp.unix ...I was actually expecting it to return Z_STREAM_END ... then you'll also need to add the size of the file name ... zlib does memory to ... NZipLib) is a Zip, GZip, Tar ... Reading a Line from a file - comp.soft-sys.matlab... fid ~= -1 tmp = fgetl(fid); currLine = currLine + 1; end ... How to create a tar + gzip from a listing of file names. - comp ... I have a file with about a dozen ... Re: tar truncates end of file name - Der Keiler UNIX: The source ...In article <uwt3uiywi.fsf@xxxxxxxxx>, rahed <raherh@xxxxxxxxx> wrote: I apply tar xvf mytarball.tar and when go deep into the new directory I can tar truncates end of file name - comp.unix.solaris | Computer GroupHello, I apply tar xvf mytarball.tar and when go deep into the new directory I can see one file misses expected suffix. The OS is Solaris 10. When ... 7/21/2012 12:24:11 AM
|
|
|
|
|
|
|
|
|