freebsd-nq/usr.sbin/makefs
Martin Matuska 51db4bad81 Fix NetBSD PR bin/44114:
makefs with -t cd9660 -o rockridge against directories with
deep structure creates a corrupted cd9660 image.

http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114

Fix NetBSD PR bin/45217:
makefs creates ISO9660 images that violate the ECMA-119 (ISO9660)
specification. This is caused by erroneously writing 32 bytes
with value 0x20 to the volume_set_id field and 128 bytes with value 0x20
to the the following 37-byte fields in the PVD:
copyright_file_id, abstract_file_id, bibliographic_file_id

This causes, among other unwanted results the reserved4 field to be
overwritten with the value 0x20. To comply with the specification,
this field muse be zero. As a result, all FreeBSD distribution
images created with makefs have not been 100% valid ISO9660 files.

http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217

Reviewed by:	kientzle
Approved by:	re (kib)
Obtained from:	NetBSD
MFC after:	3 days
2011-08-07 08:35:15 +00:00
..
cd9660 Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
compat Sync with the latest version from NetBSD. It notably addds ISO9660 support. 2010-11-07 16:05:04 +00:00
ffs Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.c 2011-06-16 23:40:10 +00:00
cd9660.c Fix NetBSD PR bin/44114: 2011-08-07 08:35:15 +00:00
cd9660.h Add analogs to the -chrp-boot and -prep-boot options to mkisofs. 2011-05-22 19:56:14 +00:00
ffs.c Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
ffs.h Sync with the latest version from NetBSD. It notably addds ISO9660 support. 2010-11-07 16:05:04 +00:00
getid.c The NetBSD Foundation has given permission to remove clause 3 and 4 2010-02-16 21:47:05 +00:00
Makefile Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
makefs.8 Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
makefs.c Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
makefs.h Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
mtree.c Add support for using mtree(5) manifest files to define the image 2011-06-19 18:34:49 +00:00
walk.c Sync with the latest version from NetBSD. It notably addds ISO9660 support. 2010-11-07 16:05:04 +00:00