[Differential] [Request, 2 lines] D3190: ar: enable deterministic mode by default
emaste (Ed Maste)
phabric-noreply at FreeBSD.org
Fri Jul 24 19:01:37 UTC 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3190.7271.patch
Type: text/x-patch
Size: 326 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20150724/a0d08b08/attachment.bin>
More information about the freebsd-toolchain
mailing list