Subject: bin/184: tn3270 is confused about where map3270 is located
To: None <gnats-admin>
From: None <Mark_Weaver@brown.edu>
List: netbsd-bugs
Date: 03/31/1994 19:50:06
>Number:         184
>Category:       bin
>Synopsis:       tn3270 is confused about where map3270 is located
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 31 19:50:05 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        current-940331
>Environment:

System: NetBSD cis-ts3-slip4.cis.brown.edu 0.9a EXCELSIOR#0 i386

>Description:

	Some parts of tn3270 think that map3270 is located in /etc.
	Other parts realize (correctly) that it is in /usr/share/misc.

>How-To-Repeat:

	I forgot how this causes problems.  However, the fix is very
	straightforward and obvious.

>Fix:
diff -u  src/usr.bin/tn3270/ascii/map3270.c.mhw1 src/usr.bin/tn3270/ascii/map3270.c
--- src/usr.bin/tn3270/ascii/map3270.c.mhw1	Fri Dec 17 02:19:01 1993
+++ src/usr.bin/tn3270/ascii/map3270.c	Wed Mar 30 22:36:18 1994
@@ -905,7 +905,7 @@
 		GotIt = Position(environPointer, keybdPointer);
 	    }
 	    if (!GotIt) {
-		GotIt = Position("/etc/map3270", keybdPointer);
+		GotIt = Position("/usr/share/misc/map3270", keybdPointer);
 	    }
 	}
 	if (!GotIt) {
@@ -913,7 +913,7 @@
 		GotIt = Position(environPointer, "unknown");
 	    }
 	    if (!GotIt) {
-		GotIt = Position("/etc/map3270", keybdPointer);
+		GotIt = Position("/usr/share/misc/map3270", keybdPointer);
 	    }
 	}
 	if (!GotIt) {
diff -u  src/usr.bin/tn3270/ascii/default.map.mhw1 src/usr.bin/tn3270/ascii/default.map
--- src/usr.bin/tn3270/ascii/default.map.mhw1	Fri Dec 17 02:19:01 1993
+++ src/usr.bin/tn3270/ascii/default.map	Wed Mar 30 22:36:19 1994
@@ -35,7 +35,7 @@
 
 /* default.map3270:  This file is the system default for the key sequence
  * if neither the user's TERM nor "unknown" are found in either of
- * MAP3270 or /etc/map3270.
+ * MAP3270 or /usr/share/misc/map3270.
  *
  *
  */
diff -u  src/usr.bin/tn3270/mset/map3270.5.mhw1 src/usr.bin/tn3270/mset/map3270.5
--- src/usr.bin/tn3270/mset/map3270.5.mhw1	Sat Feb  5 05:16:54 1994
+++ src/usr.bin/tn3270/mset/map3270.5	Wed Mar 30 22:36:19 1994
@@ -231,7 +231,7 @@
 .SH A SAMPLE ENTRY
 The following entry is used by
 tn3270(1) when unable to locate a reasonable version in the
-user's environment and in /etc/map3270:
+user's environment and in /usr/share/misc/map3270:
 .sp
 .nf
         name {          # actual name comes from TERM variable
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------