build/recover and documentation.
ok millert@, tb@, martijn@ and schwarze@
#!/usr/bin/perl -w
#
-# $OpenBSD: recover,v 1.9 2001/11/06 23:31:08 millert Exp $
+# $OpenBSD: recover,v 1.10 2016/08/08 15:09:32 sobrado Exp $
#
# Script to (safely) recover nvi edit sessions.
#
use Fcntl;
require 'sys/syscall.ph';
-$recoverdir = $ARGV[0] || "/var/tmp/vi.recover";
+$recoverdir = $ARGV[0] || "/tmp/vi.recover";
$sendmail = "/usr/sbin/sendmail";
die "Sorry, $0 must be run as root\n" if $>;
-.\" $OpenBSD: vi.1,v 1.65 2016/08/01 18:27:35 bentley Exp $
+.\" $OpenBSD: vi.1,v 1.66 2016/08/08 15:09:33 sobrado Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)vi.1 8.51 (Berkeley) 10/10/96
.\"
-.Dd $Mdocdate: August 1 2016 $
+.Dd $Mdocdate: August 8 2016 $
.Dt VI 1
.Os
.Sh NAME
Display a command prompt.
.It Cm readonly , ro Bq off
Mark the file and session as read-only.
-.It Cm recdir Bq /var/tmp/vi.recover
+.It Cm recdir Bq /tmp/vi.recover
The directory where recovery files are stored.
.It Cm redraw , re Bq off
.Nm vi
.\" ignores these signals.
.El
.Sh FILES
-.Bl -tag -width "/var/tmp/vi.recover"
+.Bl -tag -width "/tmp/vi.recover"
.It Pa /bin/sh
The default user shell.
.It Pa /etc/vi.exrc
and writable only by the owner.
.It Pa /tmp
Temporary file directory.
-.It Pa /var/tmp/vi.recover
+.It Pa /tmp/vi.recover
The default recovery file directory.
.It Pa $HOME/.nexrc
First choice for user's home directory startup file, read for
-.\" $OpenBSD: set.opt.roff,v 1.11 2016/08/01 18:27:35 bentley Exp $
+.\" $OpenBSD: set.opt.roff,v 1.12 2016/08/08 15:09:33 sobrado Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
edit option will be set if the current file lacks write permissions,
and will not be set if the user has write permissions for the file.
.KY recdir
-.IP "recdir [/var/tmp/vi.recover]"
+.IP "recdir [/tmp/vi.recover]"
The directory where recovery files are stored.
.sp
If you change the value of
-.\" $OpenBSD: vi.ref,v 1.13 2016/01/06 22:41:53 millert Exp $
+.\" $OpenBSD: vi.ref,v 1.14 2016/08/08 15:09:33 sobrado Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
Edit sessions are backed by files in the directory named by the
.OP recdir
option (the directory
-.LI /var/tmp/vi.recover
+.LI /tmp/vi.recover
by default), and are named
.QC vi.XXXXXXXXXX ,
where
In addition, it has all of the necessary email headers for
.XR sendmail 8 .
.\" When the system is rebooted, all of the files in
-.\" .LI /var/tmp/vi.recover
+.\" .LI /tmp/vi.recover
.\" named
.\" .QC recover.XXXXXXXXXX
.\" should be sent to their owners, by email, using the
cdpath="/usr/src/local/nvi:/tmp"
directory="/tmp"
paragraphs="IPLPPPQPP LIpplpipbp"
-recdir="/var/tmp/vi.recover"
+recdir="/tmp/vi.recover"
sections="NHSHH HUnhsh"
shell="/bin/csh"
shellmeta="~{[*?$`'"\"