home *** CD-ROM | disk | FTP | other *** search
- Changes in version 1.0b3 of smail/PC
- Stephen C. Trier
-
- There is only one tiny change between version 1.0b2 and 1.0b3, but it
- fixes a big bug. This bug had to do with the LOCALNAME macro in uux.c,
- which did not always generate filenames that were compatible with uuio!
- This bug meant that smail/PC could not communicate with any hosts with
- hostnames less than six characters long, and worse, that it could not
- communicate with _any_ hosts if the local system name was less than six
- characters.
-
- Rather than suggest a mass renaming of the UUCP systems of the world,
- I changed the LOCALNAME macro to generate a compatible name.
-
- The source files affected are defs.h and uux.c. The executables
- affected are uux.exe and smail.exe.
-
- Below is the context diff of the changes made to create version 1.0b3:
-
-
- *** old\defs.h
- --- defs.h
- **************
- *** 27,33
- */
-
- #ifndef VERSION
- ! #define VERSION "smail2.5/PC/1.0b2"
- #endif
-
- #ifdef __TURBOC__ /* Autodetect MS-DOS from Turbo C */
- --- 27,33 -----
- */
-
- #ifndef VERSION
- ! #define VERSION "smail2.5/PC/1.0b3"
- #endif
-
- #ifdef __TURBOC__ /* Autodetect MS-DOS from Turbo C */
- *** old\uux.c
- --- uux.c
- **************
- *** 9,14
- * to change the file owner from uucp to news.
- *
- * This program is in the public domain.
- */
-
- #include <stdio.h>
- --- 9,19 -----
- * to change the file owner from uucp to news.
- *
- * This program is in the public domain.
- + *
- + * Patch 1 written 5/23/90 by Stephen Trier: Change the definition
- + * of localname to avoid short host name bug. This way, both
- + * uuio and uux will use the same filenames.
- + *
- */
-
- #include <stdio.h>
- **************
- *** 137,143
- }
-
- /* Templates for filenames. P=path, C=character, S=system, N=seq. number */
- ! #define LOCALNAME(P,C,S,N) "%s/%c_%s.%03.3d",P,C,S,N
- #define REMOTENAME(C,S,N) "%c.%.7s%04d",C,S,N
-
- void make_filenames(void)
- --- 142,148 -----
- }
-
- /* Templates for filenames. P=path, C=character, S=system, N=seq. number */
- ! #define LOCALNAME(P,C,S,N) "%s/%c_%s%04.4d.%03.3d",P,C,S,N,N
- #define REMOTENAME(C,S,N) "%c.%.7s%04d",C,S,N
-
- void make_filenames(void)