bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Just updated debian wheezy to wheezy-backports, tar now 1.


From: Nathan Stratton Treadway
Subject: Re: [Bug-tar] Just updated debian wheezy to wheezy-backports, tar now 1.27-1
Date: Thu, 14 Jan 2016 08:31:30 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Jan 13, 2016 at 19:03:07 -0500, Gene Heskett wrote:
> The $64k question, Nathan, which doesn't seem to be defined in that link, 
> is "does it record every nuance of a files permissions and attributes 
> regardless?"

True, the page doesn't specifically mention the "create" operation one
way or the other, but it seems to imply that when the archive is created
the info for each archive member is populated with all the original
file's correct info.  (Various other options on that page control how
that info is used at extraction time.)

To check, I took a quick look at the tar source code. The variable that
gets set by -p/--same-permissions is "same_permissions_option", and
searching for that string in all the source tree finds the only places
where that variable's contents are used are all in the "extract.c" file
-- supporting the theory that -p is ignored during archive creation.

(Just to be sure, you could always give it a try without the "-p" and
then check the archive with "tar -tv" to make sure the listing shows the
permissions you expect....)


                                                Nathan


----------------------------------------------------------------------------
Nathan Stratton Treadway  -  address@hidden  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239



reply via email to

[Prev in Thread] Current Thread [Next in Thread]