Sample Header Ad - 728x90

Is there a way to suppress valid files beginning with dot (.) in a tar archive giving false errors and files?

3 votes
1 answer
375 views
I have a tar compressed archive created on a linux system that has valid files in a directory beginning with dot (.). When I extract that tar file on a Mac, tar thinks that the dotted file is a resource fork On linux:
# mkdir test_dir
# cd test_dir
# echo hello > ._SUCCESS.crc
# cd ..
# tar cvzf test_dir.tar.gz test_dir
test_dir/
test_dir/._SUCCESS.crc
# tar tf test_dir.tar.gz 
test_dir/
test_dir/._SUCCESS.crc
On the Mac:
$ tar xzf test_dir.tar.gz 
tar: copyfile unpack (test_dir/SUCCESS.crc) failed: No such file or directory
$ ls -la test_dir
total 8
drwxr-xr-x  4 xxxx  xxxx  128 Jul 31 16:31 .
drwxr-xr-x  4 xxxx  xxxx  128 Jul 31 16:31 ..
-rw-r--r--  1 xxxx  xxxx    6 Jul 31 16:22 ._SUCCESS.crc
-rw-r--r--  1 xxxx  xxxx    0 Jul 31 16:31 SUCCESS.crc
Is there any way to suppress the belief that any given dot file is a resource fork? For the curious, this is part of a sequence file export from HDFS.
Asked by Traveler (226 rep)
Jul 31, 2019, 11:37 PM
Last activity: Jul 31, 2019, 11:48 PM