Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162894408
D6871.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6871.id.diff
View Options
Index: head/usr.bin/ar/ar.1
===================================================================
--- head/usr.bin/ar/ar.1
+++ head/usr.bin/ar/ar.1
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 24, 2015
+.Dd June 16, 2016
.Dt AR 1
.Os
.Sh NAME
@@ -205,7 +205,12 @@
.Fl r
or
.Fl q
-option, insert 0's instead of the real mtime, uid and gid values
+option,
+with the
+.Fl s
+option without other options, or when invoked as
+.Nm ranlib ,
+insert 0's instead of the real mtime, uid and gid values
and 0644 instead of file mode from the members named by arguments
.Ar .
This ensures that checksums on the resulting archives are reproducible
Index: head/usr.bin/ar/ar.c
===================================================================
--- head/usr.bin/ar/ar.c
+++ head/usr.bin/ar/ar.c
@@ -283,7 +283,8 @@
}
/* Set determinstic mode for -D, and by default without -U. */
- if (Dflag || (Uflag == 0 && (bsdar->mode == 'q' || bsdar->mode == 'r')))
+ if (Dflag || (Uflag == 0 && (bsdar->mode == 'q' || bsdar->mode == 'r' ||
+ (bsdar->mode == '\0' && bsdar->options & AR_S))))
bsdar->options |= AR_D;
if (bsdar->options & AR_A)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 19, 2:24 AM (8 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35215006
Default Alt Text
D6871.id.diff (1 KB)
Attached To
Mode
D6871: ar: enable reproducible output by default when invoked as `ar -s`
Attached
Detach File
Event Timeline
Log In to Comment