freebsd-dev/usr.sbin/makefs
Marius Strobl 852f933d9d Sync makefs(8) ISO 9660 support with NetBSD:
o cd9960 -> cd9660
o Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h
  since actual user is not cd9660_eltorito.c but iso.h and
  cd9660_eltorito.h.

  Actually, include order/place of sys/endian.h doesn't matter on
  netbsd since it is always included by sys/types.h but it's not
  true on other system.  This should fix cross build breakage on
  freebsd introduced by rev. 1.16 of cd9660_eltorito.c.
  Problem reported and fix suggested on twitter.
o Fix fd leaks in error cases. Found by cppcheck.
o RRIP RE length should be 4, not 0
o Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates
  corrupted cd9660fs), iso9660_rrip.c part:
  - cd9660_rrip_finalize_node() should check rr_real_parent in node->parent,
    not in node itself in RRIP_PL case
  - cd9660_rrip_initialize_node() should update only node passed as arg
    so handle RRIP_PL in DOTDOT case

  Fixes malformed dotdot entries in deep (more than 8 level) directories
  moved into .rr_moved dir.

  Should be pulled up to netbsd-5.
  (no official ISO has such deep dirs, but cobalt restorecd is affected)

Reviewed by:	mm
Approved by:	re (kib)
Obtained from:	NetBSD
MFC after:	3 days
2011-08-10 19:12:21 +00:00
..
cd9660 Sync makefs(8) ISO 9660 support with NetBSD: 2011-08-10 19:12:21 +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 Sync makefs(8) ISO 9660 support with NetBSD: 2011-08-10 19:12:21 +00:00
cd9660.h Sync makefs(8) ISO 9660 support with NetBSD: 2011-08-10 19:12:21 +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