[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes in the way tar(1) constructs directory permissions



On Sat, 08 Nov 2014, John Conover wrote:
> There has been changes in the way a tar(1) restore to a temporary
> directory constructs directory ownerships; as login theuser, in
> ${HOME}:

This looks like you're using tar --no-same-owner, possibly via an ENV
variable or something else.

% fakeroot bash -c 'touch foo; chown 9 foo; ls -l foo; tar -zcf bar.tar.gz foo; rm foo; tar -zxf bar.tar.gz; ls -l foo; rm foo';
-rw-r--r-- 1 news root 0 Nov  8 09:43 foo
-rw-r--r-- 1 news root 0 Nov  8 09:43 foo

works just fine here with tar 1.27.1-2.
 

-- 
Don Armstrong                      http://www.donarmstrong.com

First you take a drink,
then the drink takes a drink,
then the drink takes you.
 -- F. Scott Fitzgerald


Reply to: