[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] incorrect reporting of harlink mismatch
From: |
Cezary Sliwa |
Subject: |
[Bug-tar] incorrect reporting of harlink mismatch |
Date: |
Wed, 8 Nov 2017 16:04:00 +0100 (CET) |
User-agent: |
SquirrelMail/1.4.16-1 |
Dear tar,
To reproduce the bug, enter these shell commands
==================
test -e a && echo "\"a\" already exists"
test -e a && exit
set -e -x
echo "creating test data..."
mkdir a
touch a/x
ln -s x a/y
ln a/y a/z
echo "creating test archive..."
tar cf a.tar a
echo "comaparing: "
tar vdf a.tar
echo "replacing a hardlink: "
rm a/z
ln -s x a/z
echo "comaparing: "
tar vdf a.tar
==================
I get
a/y: Not linked to a/y
which is evidently incorrect.
$ tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
(Fedora 26 x86_64)
C.S.
--
Cezary Sliwa
Institute of Physics, Polish Academy of Sciences
al. Lotnikow 32/46, PL 02-668 Warszawa, POLAND
- [Bug-tar] incorrect reporting of harlink mismatch,
Cezary Sliwa <=