Subject: bin/11054: vi recovery script somewhat deficient.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cgd@netbsd.org>
List: netbsd-bugs
Date: 09/20/2000 22:23:23
>Number:         11054
>Category:       bin
>Synopsis:       vi recovery script somewhat deficient.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 20 22:29:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chris Demetriou
>Release:        NetBSD-current (trunk) 2000-09-20
>Organization:
>Environment:
irrelevant
>Description:
read etc/rc.d/virecover.

Note that it says that it should be replaced with a script that works,
and (on a system that's likely to have a bunch of vi recover events)
look at /var/tmp/vi.recover.

note that there are files leftover, e.g.:

-rw-------  1 cgd   wheel     444 Mar 12  2000 recover.12169d
-rw-------  1 cgd   wheel     441 Jun  8 17:57 recover.24652d
-rwx------  1 root  wheel       0 Aug 17  1999 vi.00189b*
-rwx------  1 cgd   wheel   69632 Aug  7  1999 vi.02072b*
-rwx------  1 cgd   wheel       0 Mar 31 23:46 vi.06442b*
-rwx------  1 cgd   wheel   98304 Oct 28  1999 vi.08228b*
-rw-------  1 cgd   wheel  204800 Mar 12  2000 vi.12169b
-rwx------  1 cgd   wheel   10240 Jul 24  1999 vi.15010b*
-rw-------  1 cgd   wheel   55296 Jun  8 18:40 vi.24652b

the vi.* files which are executable are in fact incomplete recovery
files.

note that src/usr.bin/vi/recover/recover.script provides a more
complete recovery script.
>How-To-Repeat:
see above.
>Fix:
convert the rc.d recovery script to use the one from the usr.bin/vi
tree.
>Release-Note:
>Audit-Trail:
>Unformatted: