libvirt/tools
Eric Blake f3661756c1 virsh: support VISUAL, and allow metacharacters in EDITOR
Common Unix practice is to prefer VISUAL over EDITOR, particularly if
the editor of choice spawns a new window.  Thus, it is also common to
see settings like EDITOR='emacs -nw', with the expectation that the
shell will parse this as an argument to 'emacs' and not try to invoke
a file containing a space.

If a user puts junk in EDITOR, they deserve what they get (much more
than virsh will misbehave); furthermore, sudo scrubs EDITOR by
default.  So the blind use of metacharacters in EDITOR should not be
considered too much of a security issue.

* tools/virsh.c (editFile): Prefer VISUAL over EDITOR.  Don't
reject shell metacharacters in EDITOR.
* tools/virsh.pod (edit, net-edit, ENVIRONMENT): Document VISUAL.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=487738.
2010-03-29 16:38:51 -06:00
..
.gitignore Make pki_check.sh into an installed & supported tool 2009-09-21 14:41:46 +01:00
console.c build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
console.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
Makefile.am Use WARN_CFLAGS when compiling virsh.c 2010-03-16 16:09:12 +01:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh.c virsh: support VISUAL, and allow metacharacters in EDITOR 2010-03-29 16:38:51 -06:00
virsh.pod virsh: support VISUAL, and allow metacharacters in EDITOR 2010-03-29 16:38:51 -06:00
virt-pki-validate.in maint: make Red Hat copyright notices consistent 2010-03-18 16:48:05 +01:00
virt-xml-validate.in maint: make Red Hat copyright notices consistent 2010-03-18 16:48:05 +01:00