head 1.13; access; symbols pkgsrc-2026Q3:1.12.0.126 pkgsrc-2026Q3-base:1.12 pkgsrc-2026Q2:1.12.0.124 pkgsrc-2026Q2-base:1.12 pkgsrc-2026Q1:1.12.0.122 pkgsrc-2026Q1-base:1.12 pkgsrc-2025Q4:1.12.0.120 pkgsrc-2025Q4-base:1.12 pkgsrc-2025Q3:1.12.0.118 pkgsrc-2025Q3-base:1.12 pkgsrc-2025Q2:1.12.0.116 pkgsrc-2025Q2-base:1.12 pkgsrc-2025Q1:1.12.0.114 pkgsrc-2025Q1-base:1.12 pkgsrc-2024Q4:1.12.0.112 pkgsrc-2024Q4-base:1.12 pkgsrc-2024Q3:1.12.0.110 pkgsrc-2024Q3-base:1.12 pkgsrc-2024Q2:1.12.0.108 pkgsrc-2024Q2-base:1.12 pkgsrc-2024Q1:1.12.0.106 pkgsrc-2024Q1-base:1.12 pkgsrc-2023Q4:1.12.0.104 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.102 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.12.0.100 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.12.0.98 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.12.0.96 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.94 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.12.0.92 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.12.0.90 pkgsrc-2022Q1-base:1.12 pkgsrc-2021Q4:1.12.0.88 pkgsrc-2021Q4-base:1.12 pkgsrc-2021Q3:1.12.0.86 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.84 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.12.0.82 pkgsrc-2021Q1-base:1.12 pkgsrc-2020Q4:1.12.0.80 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.12.0.78 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.74 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.54 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.76 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.72 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.12.0.70 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.68 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.66 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.64 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.12.0.62 pkgsrc-2018Q2-base:1.12 pkgsrc-2018Q1:1.12.0.60 pkgsrc-2018Q1-base:1.12 pkgsrc-2017Q4:1.12.0.58 pkgsrc-2017Q4-base:1.12 pkgsrc-2017Q3:1.12.0.56 pkgsrc-2017Q3-base:1.12 pkgsrc-2017Q2:1.12.0.52 pkgsrc-2017Q2-base:1.12 pkgsrc-2017Q1:1.12.0.50 pkgsrc-2017Q1-base:1.12 pkgsrc-2016Q4:1.12.0.48 pkgsrc-2016Q4-base:1.12 pkgsrc-2016Q3:1.12.0.46 pkgsrc-2016Q3-base:1.12 pkgsrc-2016Q2:1.12.0.44 pkgsrc-2016Q2-base:1.12 pkgsrc-2016Q1:1.12.0.42 pkgsrc-2016Q1-base:1.12 pkgsrc-2015Q4:1.12.0.40 pkgsrc-2015Q4-base:1.12 pkgsrc-2015Q3:1.12.0.38 pkgsrc-2015Q3-base:1.12 pkgsrc-2015Q2:1.12.0.36 pkgsrc-2015Q2-base:1.12 pkgsrc-2015Q1:1.12.0.34 pkgsrc-2015Q1-base:1.12 pkgsrc-2014Q4:1.12.0.32 pkgsrc-2014Q4-base:1.12 pkgsrc-2014Q3:1.12.0.30 pkgsrc-2014Q3-base:1.12 pkgsrc-2014Q2:1.12.0.28 pkgsrc-2014Q2-base:1.12 pkgsrc-2014Q1:1.12.0.26 pkgsrc-2014Q1-base:1.12 pkgsrc-2013Q4:1.12.0.24 pkgsrc-2013Q4-base:1.12 pkgsrc-2013Q3:1.12.0.22 pkgsrc-2013Q3-base:1.12 pkgsrc-2013Q2:1.12.0.20 pkgsrc-2013Q2-base:1.12 pkgsrc-2013Q1:1.12.0.18 pkgsrc-2013Q1-base:1.12 pkgsrc-2012Q4:1.12.0.16 pkgsrc-2012Q4-base:1.12 pkgsrc-2012Q3:1.12.0.14 pkgsrc-2012Q3-base:1.12 pkgsrc-2012Q2:1.12.0.12 pkgsrc-2012Q2-base:1.12 pkgsrc-2012Q1:1.12.0.10 pkgsrc-2012Q1-base:1.12 pkgsrc-2011Q4:1.12.0.8 pkgsrc-2011Q4-base:1.12 pkgsrc-2011Q3:1.12.0.6 pkgsrc-2011Q3-base:1.12 pkgsrc-2011Q2:1.12.0.4 pkgsrc-2011Q2-base:1.12 TNF:1.1.1 pkgsrc-2011Q1:1.12.0.2 pkgsrc-2011Q1-base:1.12 pkgsrc-2010Q4:1.11.0.30 pkgsrc-2010Q4-base:1.11 pkgsrc-2010Q3:1.11.0.28 pkgsrc-2010Q3-base:1.11 pkgsrc-2010Q2:1.11.0.26 pkgsrc-2010Q2-base:1.11 pkgsrc-2010Q1:1.11.0.24 pkgsrc-2010Q1-base:1.11 pkgsrc-2009Q4:1.11.0.22 pkgsrc-2009Q4-base:1.11 pkgsrc-2009Q3:1.11.0.20 pkgsrc-2009Q3-base:1.11 pkgsrc-2009Q2:1.11.0.18 pkgsrc-2009Q2-base:1.11 pkgsrc-2009Q1:1.11.0.16 pkgsrc-2009Q1-base:1.11 pkgsrc-2008Q4:1.11.0.14 pkgsrc-2008Q4-base:1.11 pkgsrc-2008Q3:1.11.0.12 pkgsrc-2008Q3-base:1.11 cube-native-xorg:1.11.0.10 cube-native-xorg-base:1.11 pkgsrc-2008Q2:1.11.0.8 pkgsrc-2008Q2-base:1.11 cwrapper:1.11.0.6 pkgsrc-2008Q1:1.11.0.4 pkgsrc-2008Q1-base:1.11 pkgsrc-2007Q4:1.11.0.2 pkgsrc-2007Q4-base:1.11 pkgsrc-2007Q3:1.10.0.2 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.9.0.18 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.16 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.14 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.9.0.12 pkgsrc-2006Q3-base:1.9 pkgsrc-2006Q2:1.9.0.10 pkgsrc-2006Q2-base:1.9 pkgsrc-2006Q1:1.9.0.8 pkgsrc-2006Q1-base:1.9 pkgsrc-2005Q4:1.9.0.6 pkgsrc-2005Q4-base:1.9 pkgsrc-2005Q3:1.9.0.4 pkgsrc-2005Q3-base:1.9 pkgsrc-2005Q2:1.9.0.2 pkgsrc-2005Q2-base:1.9 pkgsrc-2005Q1:1.8.0.10 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.8 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.6 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.8.0.4 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.2 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.7.0.2 pkgsrc-2003Q4-base:1.7 netbsd-1-6-1:1.5.0.6 netbsd-1-6-1-base:1.5 netbsd-1-6:1.5.0.8 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.5 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.3 netbsd-1-4-PATCH001:1.3 netbsd-1-4-RELEASE:1.3 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH002:1.2 MTOOLS-3-6:1.1.1.1; locks; strict; comment @# @; 1.13 date 2026.10.31.15.38.23; author wiz; state Exp; branches; next 1.12; commitid BJ9gqCh578jaZD1H; 1.12 date 2011.03.09.20.25.08; author asau; state Exp; branches; next 1.11; 1.11 date 2007.12.09.23.38.24; author wiz; state Exp; branches; next 1.10; 1.10 date 2007.08.17.20.55.34; author joerg; state Exp; branches; next 1.9; 1.9 date 2005.04.04.08.56.18; author adam; state Exp; branches; next 1.8; 1.8 date 2003.12.11.16.05.40; author adam; state Exp; branches; next 1.7; 1.7 date 2003.08.05.20.21.43; author seb; state Exp; branches; next 1.6; 1.6 date 2003.05.22.16.16.04; author salo; state Exp; branches; next 1.5; 1.5 date 2001.02.28.10.26.02; author wiz; state Exp; branches 1.5.6.1; next 1.4; 1.4 date 2001.02.14.14.28.58; author is; state Exp; branches; next 1.3; 1.3 date 98.08.07.11.14.06; author agc; state Exp; branches; next 1.2; 1.2 date 98.02.16.07.41.32; author hubertf; state Exp; branches; next 1.1; 1.1 date 98.01.22.15.44.44; author is; state Exp; branches 1.1.1.1; next ; 1.5.6.1 date 2003.06.19.01.09.17; author grant; state Exp; branches; next ; 1.1.1.1 date 98.01.22.15.44.44; author is; state Exp; branches; next ; desc @@ 1.13 log @mtools: update to 4.0.50. Security fix release; this adds a new TODO: - ${WRKSRC} is in all binaries - investigate and fix v4_0_50 - Fix CVE-2026-118384 v4_0_49 - Correctly detect overlong file names, especially when multibyte (UTF-8) strings are concerned - Fix off-by-one error in 2 calls to native_to_wchar - When changing disk label, ignore any plain file which would match label - Added missing newlines in error messages about disk geometry - Do not print error message if getting geometry is simply not supported by device type (such as for loop devices) - If full geometry of a device is not available (such as for loop devices), at least make use of the size v4_0_48 - portability fixes, mostly for Watcom compiler - cleaned up some other warnings - various runtime fixes for windows (/dev/tty vs CONIN$) - use correct mtools (sub)command name in usage() when using -c - other usage() spelling/wording fixes - fix mtype'ing multiple files at once - integrate mkmanpages into make system, clean it, and credit texi2roff's original developer and others - document compilation on less usual environments in INSTALL - uninitialized buffer fix in mformat - fix parameter counting error in mcd, and document that image file name is not remembered v4_0_47 - fixed some of the manpage issues reported by manpage-l10n - unix-dir copying on Windows fix - new no-daemon mode for floppyd to make testing easier - make floppyd independant of XauFileName (portability) - autoconf fixes v4_0_46 - iconv buffer overflow fixes - removed references to mread and mwrite (obsolete subcommands from mcopy) - documented mdoctorfat, and addressed 2 bugs/oversights - removed references to obsolete mread and mwrite - portability fixes (dietlibc and MacOS X) & simplification v4_0_45 - Fixed iconv descriptor leak - Fixed size of error message buffer v4_0_44 - Added documentation for size parameters - Fix parsing of fat_start (reserved sectors) in mformat.c so as to allow more than 255 - Rewrite autorename in vfat.c such that it doesn't (temporarily) overwrite byte after name string - Switch statement fall-through fixes (size parsing, and bios disk in mformat.c) - Compilation warning fixes, mostly for CLANG @ text @$NetBSD: patch-aa,v 1.12 2011/03/09 20:25:08 asau Exp $ --- Makefile.in.orig 2025-02-05 12:30:43.000000000 +0000 +++ Makefile.in @@@@ -26,7 +26,6 @@@@ USERLDLIBS = USERLDFLAGS = USERLDLIBS = -MAKEINFO = makeinfo TEXI2DVI = texi2dvi TEXI2PDF = texi2pdf TEXI2HTML = texi2html @@@@ -64,6 +63,7 @@@@ INSTALL_PROGRAM = @@INSTALL_PROGRAM@@ INSTALL = @@INSTALL@@ INSTALL_PROGRAM = @@INSTALL_PROGRAM@@ +INSTALL_SCRIPT = ${BSD_INSTALL_SCRIPT} INSTALL_DATA = @@INSTALL_DATA@@ INSTALL_INFO = @@INSTALL_INFO@@ @@@@ -267,7 +267,7 @@@@ install-scripts: $(DESTDIR)$(bindir)/mtools$(EXEEXT) install-scripts: $(DESTDIR)$(bindir)/mtools$(EXEEXT) @@$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) @@for j in $(SCRIPTS) ; do \ - $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \ + $(INSTALL_SCRIPT) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \ echo $(DESTDIR)$(bindir)/$$j ; \ done rm -f $(DESTDIR)$(bindir)/lz @ 1.12 log @Update to mtools 4.0.14 Changes in 4.0.14: Fix floppyd for disks bigger than 2 Gig Remove obsolete -z flag Remove now unsupported AC_USE_SYSTEM_EXTENSIONS Fixed output formatting of mdir if MTOOLS_DOTTED_DIR is set Mformat now correctly writes backup boot sector Fixed signedness of serial number in mlabel Fixed buffer size problem in mlabel Make mlabel write backup boot sector if FAT32 Catch situation where both clear and new label are given to mlabel Quote filename parameters to scripts Mformat: Close file descriptor for boot sector Added lzip support to scripts/uz Added Tot_sectors option to mformat Fixed hidden sector handling in mformat Minfo generates mformat command lines containing new -T option Mlabel prints error if label too long @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.11 2007/12/09 23:38:24 wiz Exp $ d3 3 a5 3 --- Makefile.in.orig 2010-10-17 02:23:20.000000000 +0400 +++ Makefile.in 2011-03-09 23:09:25.000000000 +0300 @@@@ -26,7 +26,6 @@@@ d13 1 a13 1 @@@@ -65,6 +64,7 @@@@ d21 2 a22 2 @@@@ -277,7 +277,7 @@@@ install-scripts: $(DESTDIR)$(bindir)/mtools @ 1.11 log @Update to 3.9.11, provided by Sergey Svishchev in private mail: 3.9.11 is mostly a maintenance release which fixes a couple of bugs, and addresses warnings raised by gcc4, and merges some platform-specific patches (MingW, NetBSD, Redhat/Fedora, Cygwin, Solaris), and other patches (such as the new amuFormat.sh written in sh). @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- Makefile.in.orig 2006-02-28 08:55:15.000000000 +0000 +++ Makefile.in @@@@ -11,7 +11,6 @@@@ USERCFLAGS = d13 1 a13 1 @@@@ -49,6 +48,7 @@@@ LN_S = @@LN_S@@ d21 1 a21 10 @@@@ -56,7 +56,7 @@@@ INSTALL_INFO = @@INSTALL_INFO@@ .SUFFIXES: .o .c .SUFFIXES: .o .c -MAN1 = floppyd.1 floppyd_installtest.1 mattrib.1 mbadblocks.1 mcat.1 mcd.1 \ +MAN1 = @@MANFLOPPYD@@ @@MANFLOPPYD_INSTTEST@@ mattrib.1 mbadblocks.1 mcat.1 mcd.1 \ mclasserase.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 mdu.1 mformat.1 minfo.1 \ mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ mrd.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 mzip.1 @@@@ -257,7 +257,7 @@@@ install-links: $(DESTDIR)$(bindir)/mtool @ 1.10 log @Add support for DESTDIR and modular Xorg. XXX This should use the option framework for the floppyd. @ text @d3 1 a3 1 --- Makefile.in.orig 2004-02-28 20:06:35.000000000 +0100 d30 3 a32 92 @@@@ -195,30 +195,30 @@@@ html: mtools.html mtools_toc.html # Don't cd, to avoid breaking install-sh references. install-info: info - $(top_srcdir)/mkinstalldirs $(infodir) + $(top_srcdir)/mkinstalldirs ${DESTDIR}$(infodir) if test -f mtools.info; then \ for i in mtools.info*; do \ - $(INSTALL_DATA) $$i $(infodir)/$$i; \ + $(INSTALL_DATA) $$i ${DESTDIR}$(infodir)/$$i; \ done; \ else \ for i in $(srcdir)/mtools.info*; do \ - $(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \ + $(INSTALL_DATA) $$i ${DESTDIR}$(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \ done; \ fi; \ if [ -n "$(INSTALL_INFO)" ] ; then \ if [ -f $(infodir)/dir.info ] ; then \ - $(INSTALL_INFO) $(infodir)/mtools.info $(infodir)/dir.info; \ + $(INSTALL_INFO) ${DESTDIR}$(infodir)/mtools.info ${DESTDIR}$(infodir)/dir.info; \ fi; \ if [ -f $(infodir)/dir ] ; then \ - $(INSTALL_INFO) $(infodir)/mtools.info $(infodir)/dir; \ + $(INSTALL_INFO) ${DESTDIR}$(infodir)/mtools.info ${DESTDIR}$(infodir)/dir; \ fi; \ fi uninstall-info: cd $(infodir) && rm -f mtools.info* -install: $(bindir)/mtools @@BINFLOPPYD@@ install-man install-links \ - $(bindir)/mkmanifest install-scripts install-info +install: ${DESTDIR}$(bindir)/mtools @@BINFLOPPYD@@ install-man install-links \ + ${DESTDIR}$(bindir)/mkmanifest install-scripts install-info uninstall: uninstall-bin uninstall-man uninstall-links \ uninstall-scripts @@@@ -228,52 +228,52 @@@@ distclean: clean texclean maintainer-clean: distclean -$(bindir)/floppyd: floppyd - $(top_srcdir)/mkinstalldirs $(bindir) - $(INSTALL_PROGRAM) floppyd $(bindir)/floppyd - -$(bindir)/floppyd_installtest: floppyd_installtest - $(top_srcdir)/mkinstalldirs $(bindir) - $(INSTALL_PROGRAM) floppyd_installtest $(bindir)/floppyd_installtest - -$(bindir)/mtools: mtools - $(top_srcdir)/mkinstalldirs $(bindir) - $(INSTALL_PROGRAM) mtools $(bindir)/mtools - -$(bindir)/mkmanifest: mkmanifest - $(top_srcdir)/mkinstalldirs $(bindir) - $(INSTALL_PROGRAM) mkmanifest $(bindir)/mkmanifest +${DESTDIR}$(bindir)/floppyd: floppyd + $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir) + $(INSTALL_PROGRAM) floppyd ${DESTDIR}$(bindir)/floppyd + +${DESTDIR}$(bindir)/floppyd_installtest: floppyd_installtest + $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir) + $(INSTALL_PROGRAM) floppyd_installtest ${DESTDIR}$(bindir)/floppyd_installtest + +${DESTDIR}$(bindir)/mtools: mtools + $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir) + $(INSTALL_PROGRAM) mtools ${DESTDIR}$(bindir)/mtools + +${DESTDIR}$(bindir)/mkmanifest: mkmanifest + $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir) + $(INSTALL_PROGRAM) mkmanifest ${DESTDIR}$(bindir)/mkmanifest #$(ETCDIR)/mtools: mtools.etc # cp mtools.etc $(ETCDIR)/mtools -install-links: $(bindir)/mtools +install-links: ${DESTDIR}$(bindir)/mtools @@for j in $(LINKS); do \ - rm -f $(bindir)/$$j ; \ - $(LN_S) mtools $(bindir)/$$j ; \ - echo $(bindir)/$$j ; \ + rm -f ${DESTDIR}$(bindir)/$$j ; \ + $(LN_S) mtools ${DESTDIR}$(bindir)/$$j ; \ + echo ${DESTDIR}$(bindir)/$$j ; \ done ## "z" is the older version of "gz"; the name is just *too* short -install-scripts: $(bindir)/mtools - @@$(top_srcdir)/mkinstalldirs $(bindir) +install-scripts: ${DESTDIR}$(bindir)/mtools + @@$(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir) d34 3 a36 4 - $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(bindir)/$$j ; \ - echo $(bindir)/$$j ; \ + $(INSTALL_SCRIPT) $(srcdir)/scripts/$$j ${DESTDIR}$(bindir)/$$j ; \ + echo ${DESTDIR}$(bindir)/$$j ; \ d38 1 a38 24 - rm -f $(bindir)/lz - $(LN_S) uz $(bindir)/lz + rm -f ${DESTDIR}$(bindir)/lz + $(LN_S) uz ${DESTDIR}$(bindir)/lz install-man: - @@$(top_srcdir)/mkinstalldirs $(MAN1DIR) + @@$(top_srcdir)/mkinstalldirs ${DESTDIR}$(MAN1DIR) @@for j in $(MAN1); do \ - $(INSTALL_DATA) $(srcdir)/$$j $(MAN1DIR)/$$j ; \ - echo $(MAN1DIR)/$$j ; \ + $(INSTALL_DATA) $(srcdir)/$$j ${DESTDIR}$(MAN1DIR)/$$j ; \ + echo ${DESTDIR}$(MAN1DIR)/$$j ; \ done - @@$(top_srcdir)/mkinstalldirs $(MAN5DIR) + @@$(top_srcdir)/mkinstalldirs ${DESTDIR}$(MAN5DIR) @@for j in $(MAN5); do \ - $(INSTALL_DATA) $(srcdir)/$$j $(MAN5DIR)/$$j ; \ - echo $(MAN5DIR)/$$j ; \ + $(INSTALL_DATA) $(srcdir)/$$j ${DESTDIR}$(MAN5DIR)/$$j ; \ + echo ${DESTDIR}$(MAN5DIR)/$$j ; \ done uninstall-bin: @ 1.9 log @Changes 3.9.10: * Support for multiple drives in floppyd * Updated .spec file * Fixed some long name directory entry freeing bugs * Fixed duplicate FAT writing error. Fixed segfault on short images. * Mformat creates images of correct size. * CYGWIN compatibility (O_BINARY flag). * Cygwin patch for plain_io.c (no locking) * Fix a couple of memory leaks in config file parsing. Fix llong.h (redefined same symbol twice) * Fix a variable initialization problem in plain_io.c * New mclasserase command to erase memory cards C99 "compatibility" (cf http://www.mtools.linux.lu/download.html) * Fix rootskip and rate of XDF disks * Fix inverted IS_MFORMAT_ONLY conditon in plain_io.c * Moved putc after variable description (anybody knows about a -W flag so that gcc warns about these?) * Fixed mattrib -p (missing slash) * Added -m option to mformat to specify a non-standard mediabyte * Added -d options to mformat to specify number of FAT copies. Can also be set using the MTOOLS_NFATS environmental variable. @ text @d3 1 a3 1 --- Makefile.in.orig 2004-02-28 19:06:35.000000000 +0000 d30 92 a121 3 @@@@ -258,7 +258,7 @@@@ install-links: $(bindir)/mtools install-scripts: $(bindir)/mtools @@$(top_srcdir)/mkinstalldirs $(bindir) d124 3 a126 2 + $(INSTALL_SCRIPT) $(srcdir)/scripts/$$j $(bindir)/$$j ; \ echo $(bindir)/$$j ; \ d128 24 a151 1 rm -f $(bindir)/lz @ 1.8 log @Changes 3.9.9: * Large disk fixes, especially for Solaris * Floppyd robustness * Zip 250 support in mzip * Protect against division by zero when reading BSD disks * Fixed parsing of Unix filenames ending with slash * Fixes for floppyd to work with current protocol version of floppyd * Warn for invalid partition numbers * Support for geometry-less Atari disks * Support for byte-swapping disks * Fixed max numbers of sectors for FAT12 and FAT16 See ChangeLog for details @ text @d3 1 a3 1 --- Makefile.in.orig 2003-02-16 21:55:16.000000000 +0000 d27 2 a28 2 mcopy.1 mdel.1 mdeltree.1 mdir.1 mdu.1 mformat.1 minfo.1 mkmanifest.1 \ mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ d30 1 a30 1 @@@@ -257,7 +257,7 @@@@ install-links: $(bindir)/mtools @ 1.7 log @Convert to USE_NEW_TEXINFO. @ text @d3 1 a3 1 --- Makefile.in.orig 2000-05-14 18:14:59.000000000 +0000 d11 1 a12 1 d25 6 a30 6 -MAN1 = floppyd.1 mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \ +MAN1 = @@MANFLOPPYD@@ mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \ mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ mrd.1 mread.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 mzip.1 MAN1EXT = 1 @@@@ -256,7 +256,7 @@@@ install-links: $(bindir)/mtools @ 1.6 log @PKGREVISION++ - fix device handling on NetBSD ELF (from Pavel Arnost via PR pkg/21530) - fix floppyd handling in better and simpler way - don't hardcode -R, use RPATH_FLAG instead - remove unused cruft, style nits @ text @d3 11 a13 3 --- Makefile.in.orig 2000-05-14 20:14:59.000000000 +0200 +++ Makefile.in 2003-05-22 18:00:53.000000000 +0200 @@@@ -49,6 +49,7 @@@@ d21 1 a21 1 @@@@ -56,7 +57,7 @@@@ d30 1 a30 1 @@@@ -256,7 +257,7 @@@@ @ 1.5 log @We want RCS Ids in the patches. This is one of the things pkglint checks, so _please_ use it. @ text @d2 3 a4 2 --- Makefile.in.orig Sun May 14 21:14:59 2000 +++ Makefile.in Wed Feb 14 13:47:02 2001 d13 9 @ 1.5.6.1 log @Pull up revision 1.6 (requested by salo in ticket #1294): PKGREVISION++ - fix device handling on NetBSD ELF (from Pavel Arnost via PR pkg/21530) - fix floppyd handling in better and simpler way - don't hardcode -R, use RPATH_FLAG instead - remove unused cruft, style nits @ text @d1 3 a3 4 $NetBSD: patch-aa,v 1.5 2001/02/28 10:26:02 wiz Exp $ --- Makefile.in.orig 2000-05-14 20:14:59.000000000 +0200 +++ Makefile.in 2003-05-22 18:00:53.000000000 +0200 a11 9 @@@@ -56,7 +57,7 @@@@ .SUFFIXES: .o .c .SUFFIXES: .o .c -MAN1 = floppyd.1 mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \ +MAN1 = @@MANFLOPPYD@@ mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 \ mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ mrd.1 mread.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 mzip.1 MAN1EXT = 1 @ 1.4 log @Upgrade to version 3.9.7. Mostly from PR 12033 by Martti Kuparinen. @ text @d1 1 @ 1.3 log @Add NetBSD RCS Ids. @ text @d1 3 a3 5 $NetBSD$ --- Makefile.in.orig Mon Feb 16 08:24:09 1998 +++ Makefile.in Mon Feb 16 08:24:40 1998 @@@@ -47,6 +47,7 @@@@ d9 1 d11 1 a11 2 .SUFFIXES: @@@@ -195,7 +196,7 @@@@ @ 1.2 log @update to V3.8 @ text @d1 2 @ 1.1 log @Initial revision @ text @d1 3 a3 5 --- sysincludes.h.original Wed Jan 21 17:53:59 1998 +++ sysincludes.h Wed Jan 21 17:44:09 1998 @@@@ -11,6 +11,8 @@@@ /* */ /***********************************************************************/ d5 15 a19 5 +#include + #ifdef BSD /* on BSD we prefer gettimeofday, ... */ # ifdef HAVE_GETTIMEOFDAY @ 1.1.1.1 log @Initial import of the mtools package, as adapted by me. Can probably be refined a bit (e.g. patching in correct pathnames into documentation). @ text @@