Subject: bin/1056: Mail sent for recovering edit sessions mention nvi not vi
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: None <abs@mono.city.ac.uk>
List: netbsd-bugs
Date: 05/16/1995 09:50:07
>Number:         1056
>Category:       bin
>Synopsis:       Mail sent for recovering edit sessions mention nvi not vi
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 16 09:50:06 1995
>Originator:     David Brownlee
>Organization:
Monochrome
>Release:        May 95
>Environment:
System: NetBSD lapton 1.0A NetBSD 1.0A (LAPTON) #0: Mon May 8 04:07:22 PDT 1995 root@:/usr/src/sys/arch/i386/compile/LAPTON i386


>Description:
	If a vi or ex session is interrupted the mail sent to the user
	instructs them to use 'nvi' or 'nex' instead of 'vi' or 'ex'.
>How-To-Repeat:
	Start to modify a file then kill the edit session & read the mail :)
>Fix:
*** common/recover.c.orig	Thu May 11 19:04:00 1995
--- common/recover.c	Thu May 11 19:04:02 1995
***************
*** 418,425 ****
  	    " was editing a file named ", t, " on the machine ",
  	    host, ", when it was saved for recovery. ",
  	    "You can recover most, if not all, of the changes ",
! 	    "to this file using the -r option to nex or nvi:\n\n",
! 	    "\tnvi -r ", t);
  	if (len > sizeof(buf) - 1) {
  lerr:		msgq(sp, M_ERR, "recovery file buffer overrun");
  		goto err;
--- 418,425 ----
  	    " was editing a file named ", t, " on the machine ",
  	    host, ", when it was saved for recovery. ",
  	    "You can recover most, if not all, of the changes ",
! 	    "to this file using the -r option to ex or vi:\n\n",
! 	    "\tvi -r ", t);
  	if (len > sizeof(buf) - 1) {
  lerr:		msgq(sp, M_ERR, "recovery file buffer overrun");
  		goto err;
>Audit-Trail:
>Unformatted: