ar: fix deterministic mode when running as ranlib
This was broken by r286024. PR: 202741 Submitted by: fk@fabiankeil.de Obtained from: ElectroBSD
This commit is contained in:
parent
e923e8d573
commit
928826a48d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user