# tree -u
.
└── [backup  ]  a
    └── [games   ]  b
        └── [news    ]  c
            └── [uucp    ]  d

3 directories, 1 file
# tar --create --file test.tar a
# rm -r a
# tar --extract --file test.tar
# tree -u
.
├── [backup  ]  a
│   └── [games   ]  b
│       └── [news    ]  c
│           └── [uucp    ]  d
└── [root    ]  test.tar

3 directories, 2 files
# rm -r a
# tar --extract --file test.tar a/b/c/d
# tree -u
.
├── [root    ]  a
│   └── [root    ]  b
│       └── [root    ]  c
│           └── [uucp    ]  d
└── [root    ]  test.tar

3 directories, 2 files

I wonder why GNU tar doesn't set the owners when it creates the
directory hierarchy in the second case.

-- 
Anthony Carrico

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to