[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] incorrect results extracting...
From: |
Nigel Kukard |
Subject: |
[Bug-tar] incorrect results extracting... |
Date: |
Wed, 14 May 2008 21:43:24 +0000 |
I backed up a directory with mode 0000 permissions with... tar
-cvf /tmp/test.tar /vservers
address@hidden store1]# whoami
root
Here is a tar -tvf /tmp/test.tar ... its correct
drwxr-xr-x root/root 0 2008-04-25 17:02 vservers/.pkg/
drwxr-xr-x root/root 0 2008-04-25 17:02
vservers/.pkg/devel-stable-4-0/
drwxr-xr-x root/root 0 2008-04-25 17:02
vservers/.pkg/devel-stable-4-0/rpm/
drwxr-xr-x rpm/rpm 0 2007-05-21 16:50
vservers/.pkg/devel-stable-4-0/rpm/state/
-rw-r--r-- root/root 20480 2008-04-25 17:32
vservers/.pkg/devel-stable-4-0/rpm/state/Installtid
Here is a tar -xvf /tmp/test.tar ... notice the permissions are
horribly wrong!
address@hidden store1]# ls -la vservers/
total 16
drwxr-xr-x 4 root root 4096 May 14 21:22 .
drwxr-xr-x 4 root root 4096 May 14 21:07 ..
drwx------ 5 root root 4096 May 14 21:08 .pkg
address@hidden store1]# ls -la vservers/.pkg/
total 20
drwx------ 5 root root 4096 May 14 21:08 .
drwxr-xr-x 4 root root 4096 May 14 21:22 ..
drwx------ 4 root root 4096 May 14 21:07 devel-stable-4-0
address@hidden store1]# ls -la vservers/.pkg/devel-stable-4-0/
total 16
drwx------ 4 root root 4096 May 14 21:07 .
drwx------ 5 root root 4096 May 14 21:08 ..
drwxr-xr-x 4 root root 4096 Apr 25 17:02 rpm
address@hidden store1]# ls -la
vservers/.pkg/devel-stable-4-0/rpm/state/Installtid
-rw-r--r-- 1 root root 20480 Apr 25 17:32
vservers/.pkg/devel-stable-4-0/rpm/state/Installtid
Using CPIO it extracts correctly with cpio -vi < /tmp/test.tar
address@hidden store1]# ls -la vservers/
total 12
drwxr-xr-x 3 root root 4096 May 14 21:37 .
drwxr-xr-x 4 root root 4096 May 14 21:37 ..
drwxr-xr-x 3 root root 4096 May 14 21:37 .pkg
address@hidden store1]# ls -la vservers/.pkg/
total 12
drwxr-xr-x 3 root root 4096 May 14 21:37 .
drwxr-xr-x 3 root root 4096 May 14 21:37 ..
drwxr-xr-x 4 root root 4096 May 14 21:37 devel-stable-4-0
address@hidden store1]# ls -la vservers/.pkg/devel-stable-4-0/
total 16
drwxr-xr-x 4 root root 4096 May 14 21:37 .
drwxr-xr-x 3 root root 4096 May 14 21:37 ..
drwxr-xr-x 4 root root 4096 May 14 21:37 rpm
address@hidden store1]# ls -la
vservers/.pkg/devel-stable-4-0/rpm/
total 16
drwxr-xr-x 4 root root 4096 May 14 21:37 .
drwxr-xr-x 4 root root 4096 May 14 21:37 ..
drwxr-xr-x 2 root root 4096 May 14 21:37 etc
drwxr-xr-x 2 rpm rpm 4096 May 14 21:37 state
address@hidden store1]# ls -la
vservers/.pkg/devel-stable-4-0/rpm/state/Installtid
-rw-r--r-- 1 root root 20480 May 14 21:37
vservers/.pkg/devel-stable-4-0/rpm/state/Installtid
What am I doing wrong? I've tried every single option I can to
--preserve and the like, no change.
-N
signature.asc
Description: This is a digitally signed message part
- [Bug-tar] incorrect results extracting...,
Nigel Kukard <=