Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2015 12:28:14 +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: r287324 - head/usr.bin/ar
Message-ID:  <201508311228.t7VCSEqG070427@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Aug 31 12:28:13 2015
New Revision: 287324
URL: https://svnweb.freebsd.org/changeset/base/287324

Log:
  ar: fix deterministic mode when running as ranlib
  
  This was broken by r286024.
  
  PR:		202741
  Submitted by:	fk@fabiankeil.de
  Obtained from:	ElectroBSD

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

Modified: head/usr.bin/ar/ar.c
==============================================================================
--- head/usr.bin/ar/ar.c	Mon Aug 31 10:43:00 2015	(r287323)
+++ head/usr.bin/ar/ar.c	Mon Aug 31 12:28:13 2015	(r287324)
@@ -144,6 +144,9 @@ main(int argc, char **argv)
 		if (*argv == NULL)
 			ranlib_usage();
 
+		/* Enable determinstic mode unless -U is set. */
+		if (Uflag == 0)
+			bsdar->options |= AR_D;
 		bsdar->options |= AR_S;
 		for (;(bsdar->filename = *argv++) != NULL;)
 			ar_mode_s(bsdar);



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