Skip to content
Snippets Groups Projects
Commit 74baa7ec authored by Guido Günther's avatar Guido Günther
Browse files

Use sensible-editor as fallback

Based on a patch by Dmitry Smirnov

Closes: #594444
parent cc59dd4c
No related branches found
No related tags found
No related merge requests found
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Tue, 22 Jul 2014 22:27:09 +0200
Subject: Use sensible-editor as fallback
Closes: #594444
---
tools/virsh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virsh.c b/tools/virsh.c
index 3927120..52cd1e5 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -765,7 +765,7 @@ vshEditFile(vshControl *ctl, const char *filename)
if (!editor)
editor = virGetEnvBlockSUID("EDITOR");
if (!editor)
- editor = "vi"; /* could be cruel & default to ed(1) here */
+ editor = "sensible-editor";
/* Check that filename doesn't contain shell meta-characters, and
* if it does, refuse to run. Follow the Unix conventions for
......@@ -12,3 +12,4 @@ debian/Debianize-systemd-service-files.patch
Allow-xen-toolstack-to-find-it-s-binaries.patch
Skip-vircgrouptest.patch
Include-param.h-on-kFreeBSD.patch
Use-sensible-editor-as-fallback.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment