bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Ver 1.13 "-g" Prepends New Dir to Filenames Under Solaris 8


From: Tony Kocurko
Subject: [Bug-tar] Ver 1.13 "-g" Prepends New Dir to Filenames Under Solaris 8
Date: Thu, 09 Sep 2004 17:50:45 -0230
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2

#!/bin/sh
#-------------------------------------------------------------------------------
# Purpose : Show "--listed-incremental" problem of version 1.13 under Solaris.
#
# Invocation: ./$0
#
# Comments  : Using the "--listed-incremental=FILE_NAME" command line switch
#             of version 1.13 tar under Solaris 8 causes leading directory
# path names to be prepended with a directory path component that
#             consists of eleven decimal digits followed by a '/' character.
#
# Using this script to backup the directory tree ./test1, which is
#             itself initially created and populated by this script, this
# output was produced on my SPARC system running under Solaris 8:
#
#               10120122333/./test1/
#               10120122333/./test1/test2/
#               10120122135/./test1/test2/test3
#
#             and the subsequent extraction of the archive created the
#             directories 10120122333 and 101201222135.
#
# However, by simply leaving off the "--listed-incremental" command
#             line switch, the problem disappeared. Including the same
#             "--listed-incremental" command line switch on the second tar
#             command (the one that extracts the archive) led to the same
#             problem.
#
#             I have searched the bug archive but did not find this problem
#             addressed.
#
# Author    : Tony Kocurko
#             Seismological Systems Manager
#             Department of Earth Sciences
#             Alexander Murray Building - Room ER-4063
#             Memorial University of Newfoundland
#             St. John's, NL, Canada  A1B 3X5
#
#             e-mail: address@hidden
#             Office: 709-737-8898
#             FAX   : 709-737-2589
#-------------------------------------------------------------------------------
mkdir -p ./test1/test2

echo "Test string." > ./test1/test2/test3

tar --create  --file=./Delete.tar --listed-incremental=./Delete.snap ./test1
tar --extract --file=./Delete.tar --verbose

exit 0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]