[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [GNU tar 1.15.1] Tar only restores some timestamps, not all
From: |
Markus Laire |
Subject: |
[Bug-tar] [GNU tar 1.15.1] Tar only restores some timestamps, not all |
Date: |
Mon, 13 Feb 2006 18:50:48 +0200 |
When the included test.sh is run as root, the timestamp is not
restored for directory a/b, but is restored for the other 4
directories in the archive.
Distribution is "Knoppix 4.0.2 Live-CD"
tar is "tar (GNU tar) 1.15.1"
uname -a gives
"Linux Knoppix 2.6.12 #2 SMP Tue Aug 9 23:20:52 CEST 2005 i686 GNU/Linux"
Filesystem is ReiserFS on top of LVM2
---------- test.sh ----------
echo "- Original files"
mkdir -p a/b/e
mkdir -p a/b-c/e
touch -t 200001010000 a a/* a/*/*
find a | sort | xargs ls -ld
echo "- Archived files"
find a | sort | tar cf a.tar -T - --no-recursion
tar tvf a.tar
echo "- Extracted files"
rm -rf a
tar xf a.tar
find a | sort | xargs ls -ld
---------- test.sh ----------
gives this output
---------- output ----------
- Original files
drwxr-xr-x 4 root root 96 2000-01-01 00:00 a
drwxr-xr-x 3 root root 72 2000-01-01 00:00 a/b
drwxr-xr-x 3 root root 72 2000-01-01 00:00 a/b-c
drwxr-xr-x 2 root root 48 2000-01-01 00:00 a/b-c/e
drwxr-xr-x 2 root root 48 2000-01-01 00:00 a/b/e
- Archived files
drwxr-xr-x root/root 0 2000-01-01 00:00:00 a/
drwxr-xr-x root/root 0 2000-01-01 00:00:00 a/b/
drwxr-xr-x root/root 0 2000-01-01 00:00:00 a/b-c/
drwxr-xr-x root/root 0 2000-01-01 00:00:00 a/b-c/e/
drwxr-xr-x root/root 0 2000-01-01 00:00:00 a/b/e/
- Extracted files
drwxr-xr-x 4 root root 96 2000-01-01 00:00 a
drwxr-xr-x 3 root root 72 2006-02-13 17:56 a/b
drwxr-xr-x 3 root root 72 2000-01-01 00:00 a/b-c
drwxr-xr-x 2 root root 48 2000-01-01 00:00 a/b-c/e
drwxr-xr-x 2 root root 48 2000-01-01 00:00 a/b/e
---------- output ----------
--
Markus Laire
- [Bug-tar] [GNU tar 1.15.1] Tar only restores some timestamps, not all,
Markus Laire <=