cvs commit: src/usr.sbin/pkg_install/lib url.c

Greg 'groggy' Lehey grog at
Tue Mar 6 23:12:30 UTC 2007

On Tuesday,  6 March 2007 at 23:43:07 +0300, Ruslan Ermilov wrote:
> On Tue, Mar 06, 2007 at 09:41:54AM -0800, Tim Kientzle wrote:
>> Ruslan Ermilov wrote:
>>>  Modified files:
>>>    usr.sbin/pkg_install/lib url.c
>>>  Log:
>>>  Invoke tar(1) with the -p option when installing a package
>>>  from an URL (i.e., do it the same way as when installing
>>>  from a file).  This fixes the lossage of the setuid bits.
>>>  It wasn't a problem before because GNU tar(1) implied the
>>>  -p option for root, but BSD tar(1) doesn't do that.
>> Hmmm...  This might actually be considered a bsdtar bug.
>> I'll look into it.
> That behavior of BSD tar(1) surprised me, to be honest.

I'm very much in favour of keeping the discrepancies (and surprises!)
between gnutar and bsdtar to a minimum.  Should we remove this one?

See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the cvs-src mailing list