diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index 4dee029b96aa..9bc70de4ff45 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -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);