Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P372
Masterwork From Distant Lands
Active
Public
Actions
Authored by
cem
on Mar 10 2020, 7:16 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/contrib/libarchive/libarchive/archive_write_set_format_gnutar.c b/contrib/libarchive/libarchive/archive_write_set_format_gnutar.c
index ec29c5c418e4..780ddb78aa27 100644
--- a/contrib/libarchive/libarchive/archive_write_set_format_gnutar.c
+++ b/contrib/libarchive/libarchive/archive_write_set_format_gnutar.c
@@ -635,7 +635,7 @@ archive_format_gnutar_header(struct archive_write *a, char h[512],
}
/* By truncating the mode here, we ensure it always fits. */
- format_octal(archive_entry_mode(entry) & 07777,
+ format_octal(archive_entry_mode(entry) & 0777777,
h + GNUTAR_mode_offset, GNUTAR_mode_size);
/* GNU tar supports base-256 here, so should never overflow. */
Event Timeline
cem
edited the content of this paste.
(Show Details)
Mar 10 2020, 7:16 PM
2020-03-10 19:16:19 (UTC+0)
cem
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
cem
edited the content of this paste.
(Show Details)
Mar 10 2020, 7:17 PM
2020-03-10 19:17:26 (UTC+0)
Log In to Comment