Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 13:36:18 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286010 - head/usr.bin/ar
Message-ID:  <201507291336.t6TDaIbn051458@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Jul 29 13:36:17 2015
New Revision: 286010
URL: https://svnweb.freebsd.org/changeset/base/286010

Log:
  ar: enable deterministic mode by default
  
  Ar cannot handle UIDs with more than 6 digits, and storing the mtime,
  uid, gid and mode provides little to negative value anyhow for ar's
  uses. 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
  Differential Revision:	https://reviews.freebsd.org/D3190

Modified:
  head/usr.bin/ar/ar.1
  head/usr.bin/ar/ar.c

Modified: head/usr.bin/ar/ar.1
==============================================================================
--- head/usr.bin/ar/ar.1	Wed Jul 29 13:14:34 2015	(r286009)
+++ head/usr.bin/ar/ar.1	Wed Jul 29 13:36:17 2015	(r286010)
@@ -210,6 +210,7 @@ and 0644 instead of file mode from the m
 .Ar .
 This ensures that checksums on the resulting archives are reproducible
 when member contents are identical.
+This option is enabled by default.
 If multiple
 .Fl D
 and

Modified: head/usr.bin/ar/ar.c
==============================================================================
--- head/usr.bin/ar/ar.c	Wed Jul 29 13:14:34 2015	(r286009)
+++ head/usr.bin/ar/ar.c	Wed Jul 29 13:36:17 2015	(r286010)
@@ -104,6 +104,8 @@ main(int argc, char **argv)
 
 	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";




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507291336.t6TDaIbn051458>