FIXDEF v1.0
============

FIXDEF is a 16-bit DOS utility that repairs malformed DORINFOx.DEF door
drop files for callers who use a one-word name or alias.

Some DOOR.SYS-to-DORINFO converters omit the caller last-name line when no
last name exists. Older DOS doors may immediately return to the BBS when
line 8 is missing. Yankee Trader is one known example.

FIXDEF inserts a fallback last name of "1" only when the last-name field is
missing or blank.

FEATURES
--------
* One FIXDEF.COM works with nodes 1 through 9.
* Auto-detects DORINFO1.DEF through DORINFO9.DEF.
* Repairs a missing line 8.
* Repairs a blank or whitespace-only line 8.
* Leaves a valid last name unchanged.
* Reports the selected file and action.
* Returns errorlevel 0 on success and 1 on failure.

INSTALLATION
------------
Copy FIXDEF.COM to the drop-file directory or to a directory in the DOS
PATH. FIXDEF examines the CURRENT WORKING DIRECTORY.

USAGE
-----
Create the DORINFO file first, then run FIXDEF:

  CD C:\BBS\NODE2\DROP
  FLASHDEF
  FIXDEF

After FIXDEF succeeds, launch the door normally.

AUTO-DETECTION
--------------
FIXDEF searches for DORINFO1.DEF through DORINFO9.DEF in numeric order and
processes the first file found. A node directory should normally contain
only that node's active DORINFO file.

RESULTS
-------
Missing or blank last name:

  FIXDEF: inserted missing last name 1.
  FIXDEF: file = DORINFO2.DEF

Valid last name:

  FIXDEF: no change needed.
  FIXDEF: file = DORINFO2.DEF

IMPORTANT
---------
FIXDEF expects the conventional 12-line DORINFO format or the common
11-line malformed form where caller last-name line 8 was omitted.

The input file must be smaller than 4096 bytes.

FIXDEF writes a DORINFOx.$$$ temporary file and replaces the generated
drop file after a successful rewrite. DORINFO files are normally recreated
for every door launch.

FILES
-----
FIXDEF.COM      DOS executable
README.MD       Complete Git-friendly documentation
README.TXT      This DOS-friendly documentation
FILE_ID.DIZ     BBS archive description
EXAMPLE.BAT     Generic batch example
CHANGELOG.MD    Release history
LICENSE         MIT license
MANIFEST.TXT    Package contents
SHA256SUMS.TXT  Checksums
SOURCE\         Assembly source and build instructions
TESTS\          Test and expected-result files

LICENSE
-------
MIT. See LICENSE.
