bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] tar uf -C not working with a directory as input


From: Olivier B.
Subject: [Bug-tar] tar uf -C not working with a directory as input
Date: Wed, 21 Dec 2016 12:16:09 +0100

With tar 1.27.1 (Ubuntu14), I noticed errors in a script that worked
in 1.23 (RedHat6)

CWD is /path/to/script
I used to do
  tar uf /path/to/script/subdir/archive.tar -C /path/to/files directoryA
(in order to include /path/to/files/directoryA in the archive)

But with tar 1.27.1, this does not work. I get
tar: directoryA/file1: Cannot stat: No such file or directory
tar: directoryA/file2: Cannot stat: No such file or directory
So the -C is used since tar can list the files in the folder, but
later they are not found

I can do, (still from /path/to/archive with 1.27)
  tar uf /path/to/script/subdir/archive.tar -C /path/to/files
directoryA/file1 directoryA/file2
and this works

And if i chdir to /path/to/files, then the original command manages to
find the files in the directory

The original command worked from /path/to archive with tar 1.23



reply via email to

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