opnsense-src/usr.sbin/makefs/tests
Ed Maste 1f31d43742 makefs: Fix cd9660 duplicate directory names
Previously we could create cd9660 images with duplicate short (level 2)
names.

cd9660_level2_convert_filename used a 30-character limit (for files and
directories), not including the '.' separator.  cd9660_rename_filename
used a 31-character limit, including the '.'.  Directory names 31
characters or longer (without '.') were shortened to 30 characters, and
if a collision occurred cd9660_rename_filename uniquified them starting
with the 31st character.  Unfortunately the directory record's name_len
was already set, so the unique part of the name was stripped off.

Directories are up to 31 d-characters (i.e., A-Z 0-9 and _); there is no
provision for a '.' in a directory name.  Increase the name length limit
to 31 for directories, and exclude '.'s.

This name mapping and deduplication code is still fragile and convoluted
and would beenfit from a more holistic effort.

PR:		283238, 283112
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48251
2024-12-30 14:48:44 -05:00
..
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
makefs_cd9660_tests.sh makefs: Fix cd9660 duplicate directory names 2024-12-30 14:48:44 -05:00
makefs_ffs_tests.sh makefs: clean up some leftovers after $FreeBSD$ tag removal 2023-08-16 16:24:37 -04:00
makefs_tests_common.sh makefs: Fix cd9660 duplicate directory names 2024-12-30 14:48:44 -05:00
makefs_zfs_tests.sh makefs: Record a larger TXG number in the uberblock 2024-10-14 13:14:37 +00:00