mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
0118b0c8e5
The checksum code assumed that struct ustar_header filled an entire block and calculcated the checksum based on the size of the structure. The header is in fact only 500 bytes long while the checksum covers the entire block (“logical record” in POSIX terms). Add padding and an assertion, and clean up the checksum code. MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44226 |
||
---|---|---|
.. | ||
tarfs.h | ||
tarfs_dbg.h | ||
tarfs_io.c | ||
tarfs_subr.c | ||
tarfs_vfsops.c | ||
tarfs_vnops.c |