Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F6241562
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
cem
Mar 10 2020, 7:16 PM
2020-03-10 19:16:19 (UTC+0)
Size
970 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
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
@@ -70,7 +70,7 @@ struct gnutar {
#define GNUTAR_name_offset 0
#define GNUTAR_name_size 100
#define GNUTAR_mode_offset 100
-#define GNUTAR_mode_size 7
+#define GNUTAR_mode_size 8
#define GNUTAR_mode_max_size 8
#define GNUTAR_uid_offset 108
#define GNUTAR_uid_size 7
@@ -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. */
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2537007
Default Alt Text
raw.txt (970 B)
Attached To
Mode
P372 Masterwork From Distant Lands
Attached
Detach File
Event Timeline
Log In to Comment