home *** CD-ROM | disk | FTP | other *** search
- PATCH FOR NETWARE 386 V3.1 SMODE.EXE UTILITY
-
- PROBLEM:
-
- The SMODE.EXE that ships with NetWare 386 v3.10 A (VERSION
- indicates V2.00, 27,573 bytes, 6/6/90, 12:27pm) has a bug in
- it that prevents setting a search mode to any executable
- file that has a file name (less path and extension) that is
- longer than five characters.
-
- For example, SMODE has no problem with files like D.COM,
- DI.EXE, DIS.EXE, DISP.EXE, or DISPL.EXE. However, once the
- base part of the filename exceeds five characters, like
- DISPLA.EXE, attempting to use SMODE to display or modify the
- search mode will fail with the error message: "Executable
- files could not be found with pattern '*.COM or *.EXE'".
-
- WHAT'S WRONG:
-
- Novell screwed up again.
-
- Careful inspection of SMODE.EXE reveals that SMODE breaks up
- the file name specified on the command line into a fully
- qualfied path and a unqualified file name. However, the
- amount of space allocated for the unqualified file name is
- only a 10 bytes...enough for a 9-byte ASCII string and a
- null terminator. If the unqualified file name is longer
- than 9 bytes (i.e., longer than 5 characters, plus a period,
- plus a 3-byte extension), the last part of this variable's
- storage area gets overwritten, and SMODE can't find the
- file.
-
- WHAT DO WE DO:
-
- Well, SMODE stores the unqualified file name at offset 1EB2h
- within its data segment. The trick is to find some other
- larger unused area within its data segment in which to place
- this variable. Conveniently some text version information
- is stored at offset 720h. So, we merely change all
- references to location 1EB2h to reference 720h instead.
-
- OK, SO HOW DO I ACTUALLY APPLY THE PATCH?
-
- To apply the patch:
-
- 1.) Make a backup copy of LOGIN.EXE
-
- 2.) Execute the DOPATCH batch file, DOPATCH SMODE.EXE.
- DOPATCH executes PATCH.EXE with the patch information 7
- times to take care of every reference to this variable
- field.
-
- 3.) Test it and make sure that it works for you.
- DISCLAIMERS
-
- This is not a Novell supplied or supported patch, although I
- hope that Novell will take notice and correct this problem
- in future releases.
-
- Also, you're trying the patch at your own risk. I'm not
- aware of any potential side effects, and this document
- describes the patch to the best of my knowledge.
-
-
-
- Brett Warthen
- (the original LAN Shark)
-