Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2015 19:01:37 +0000
From:      "emaste (Ed Maste)" <phabric-noreply@FreeBSD.org>
To:        freebsd-toolchain@freebsd.org
Subject:   [Differential] [Request, 2 lines] D3190: ar: enable deterministic mode by default
Message-ID:  <differential-rev-PHID-DREV-usn5i3qzb3c4qoqpymts-req@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

--b1_57e0bd5c6188a79df5dd800d8b8d4dde
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit

emaste created this revision.
emaste added reviewers: bapt, brooks.
emaste added a subscriber: freebsd-toolchain-list.

REVISION SUMMARY
  Ar cannot handle UIDs with more than 6 digits, and there's little value in storing the mtime, uid, gid and mode anyhow.  Turn on deterministic (-D) mode by default; it can be disabled by the user with -U.
  
  PR:         196929
  Relnotes:   Yes
  Sponsored by:       The FreeBSD Foundation

REVISION DETAIL
  https://reviews.freebsd.org/D3190

AFFECTED FILES
  usr.bin/ar/ar.c

CHANGE DETAILS
  diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c
  --- a/usr.bin/ar/ar.c
  +++ b/usr.bin/ar/ar.c
  @@ -104,6 +104,8 @@
   
   	bsdar = &bsdar_storage;
   	memset(bsdar, 0, sizeof(*bsdar));
  +	/* Enable deterministic mode by default. */
  +	bsdar->options |= AR_D;
   
   	if ((bsdar->progname = getprogname()) == NULL)
   		bsdar->progname = "ar";

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: emaste, bapt, brooks
Cc: freebsd-toolchain-list

--b1_57e0bd5c6188a79df5dd800d8b8d4dde
Content-Type: text/x-patch; charset=utf-8; name="D3190.7271.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D3190.7271.patch"

ZGlmZiAtLWdpdCBhL3Vzci5iaW4vYXIvYXIuYyBiL3Vzci5iaW4vYXIvYXIuYwotLS0gYS91c3Iu
YmluL2FyL2FyLmMKKysrIGIvdXNyLmJpbi9hci9hci5jCkBAIC0xMDQsNiArMTA0LDggQEAKIAog
CWJzZGFyID0gJmJzZGFyX3N0b3JhZ2U7CiAJbWVtc2V0KGJzZGFyLCAwLCBzaXplb2YoKmJzZGFy
KSk7CisJLyogRW5hYmxlIGRldGVybWluaXN0aWMgbW9kZSBieSBkZWZhdWx0LiAqLworCWJzZGFy
LT5vcHRpb25zIHw9IEFSX0Q7CiAKIAlpZiAoKGJzZGFyLT5wcm9nbmFtZSA9IGdldHByb2duYW1l
KCkpID09IE5VTEwpCiAJCWJzZGFyLT5wcm9nbmFtZSA9ICJhciI7Cgo=


--b1_57e0bd5c6188a79df5dd800d8b8d4dde--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-usn5i3qzb3c4qoqpymts-req>