summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-04-11 22:02:07 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-04-11 22:02:07 +0000
commitb1e7ae6ffb9b635244266edca05df6bbedd5dd77 (patch)
tree8e93cef6fe6e686b911b4d288e27d9f217db15ea /sbin
parentc4023dd00fa11898ca9a3b8d3593403c16fbe7e5 (diff)
Use absolute path for vi. OK deraadt
Diffstat (limited to 'sbin')
-rw-r--r--sbin/scsi/scsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index e0c2846b0c9..56858794cde 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.17 2005/04/11 14:59:01 cloder Exp $ */
+/* $OpenBSD: scsi.c,v 1.18 2005/04/11 22:02:06 cloder Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -53,6 +53,7 @@
#include <ctype.h>
#include <signal.h>
#include <err.h>
+#include <paths.h>
#include "libscsi.h"
@@ -735,7 +736,7 @@ edit_edit(void)
char *system_line;
char *editor = getenv("EDITOR");
if (!editor)
- editor = "vi";
+ editor = _PATH_VI;
fclose(edit_file);