Bug#2146: tar fails to restore file ownership
Package: tar
Version: 1.11.8
Revision: 1
The session below demonstrates a NASTY bug in tar. Tar does not
restore ownership of files. I tried -p, --preserve, --same-owner,
etc., and nothing worked. I verified that my passwd file was alright.
The clincher was when I ftp'ed the latest slackware tar from a
friend's machine and tried it. Slackware's tar worked just fine.
--Mike
diannau# tar tvf /dev/st0
drwxr-xr-x root/root 50 Oct 24 16:45 1995 home/
drwxr-xr-x deisher/deisher 949 Jan 13 08:34 1996 home/deisher/
drwxr-xr-x deisher/deisher 84 Sep 30 21:40 1995 home/deisher/.icons/
drwxr-xr-x deisher/deisher 29 Oct 9 22:54 1995 home/deisher/.ncftp/
drwx------ deisher/deisher 136 Jan 10 22:01 1996 home/deisher/.netscape/
drwx------ deisher/deisher 139 Nov 14 00:21 1995 home/deisher/.netscape/cache/
^C
diannau# tar xvpf /dev/st0
home/
home/deisher/
home/deisher/.icons/
home/deisher/.ncftp/
home/deisher/.netscape/
home/deisher/.netscape/cache/
^C
diannau# ls -laR home
total 3
drwxr-xr-x 3 root root 1024 Jan 15 21:10 .
drwxr-xr-x 3 root root 1024 Jan 15 21:10 ..
drwxr-xr-x 14 root root 1024 Jan 15 21:10 deisher
home/deisher:
total 14
drwxr-xr-x 14 root root 1024 Jan 15 21:10 .
drwxr-xr-x 3 root root 1024 Jan 15 21:10 ..
drwxr-xr-x 2 root root 1024 Jan 15 21:10 .icons
drwxr-xr-x 2 root root 1024 Jan 15 21:10 .ncftp
drwx------ 3 root root 1024 Jan 15 21:10 .netscape
^C
Reply to: