Subject: misc/4521: sysinst should not clear screen immediately after ftp errors out
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Havard.Eidnes@runit.sintef.no>
List: netbsd-bugs
Date: 11/17/1997 19:44:52
>Number:         4521
>Category:       misc
>Synopsis:       sysinst should not clear screen immediately after ftp errors out
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 17 10:50:04 1997
>Last-Modified:
>Originator:     Havard Eidnes
>Organization:
	SINTEF RUNIT
>Release:        NetBSD-1.3_ALPHA Nov 15 1997
>Environment:
System: NetBSD vader.runit.sintef.no 1.3_ALPHA NetBSD 1.3_ALPHA (VADER) #11: Sat Nov 8 20:20:41 MET 1997 he@vader.runit.sintef.no:/usr/src/sys/arch/i386/compile/VADER i386


>Description:
	If for some reason sysinst gets an error fetching the
	distribution set via ftp, it should not immediately proceed
	to clear the screen, thus making it impossible to read the
	error message and then correct the problem.

>How-To-Repeat:
	Give sysinst "invalid" input data in the ftp setup, and watch
	the error message vanish as sysinst clears the screen as the first
	action when ftp fails and returns control to sysinst.

>Fix:

This fix for /usr/src/distrib/utils/sysinst/ fixes this particular problem.

*** net.c.old	Tue Nov 11 13:58:33 1997
--- net.c	Mon Nov 17 19:35:12 1997
***************
*** 222,225 ****
--- 222,227 ----
  		if (ret) {
  			/* Error getting the file.  Bad host name ... ? */
+ 			msg_display (MSG_ftperror_cont);
+ 			getchar();
  			puts (CL);
  			wrefresh (stdscr);
*** msg.mi.eng.old	Thu Nov 13 13:36:46 1997
--- msg.mi.eng	Mon Nov 17 19:34:40 1997
***************
*** 422,425 ****
--- 422,428 ----
  }
  
+ message ftperror_cont
+ {Ftp detected an error.  Press <return> to continue.}
+ 
  message ftperror
  {Ftp could not retreive a file.  Do you want to try again?}
>Audit-Trail:
>Unformatted: