File: add-editor-fallback.patch

package info (click to toggle)
shelldap 1.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: perl: 4,626; makefile: 16; sh: 3
file content (18 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: If EDITOR is not set, use /usr/bin/editor
 See Debian Policy "Editors and pagers".
Origin: vendor
Forwarded: not-needed
Author: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2017-06-09

--- a/shelldap
+++ b/shelldap
@@ -629,7 +629,7 @@ sub init
 	my $self = shift;
 	$self->{'API'}->{'match_uniq'} = 0;
 
-	$self->{'editor'} = $conf->{'editor'} || $ENV{'EDITOR'} || 'vi';
+	$self->{'editor'} = $conf->{'editor'} || $ENV{'EDITOR'} || '/usr/bin/editor' || 'vi';
 	$self->{'pager'}  = $conf->{'pager'}  || $ENV{'PAGER'}  || 'less';
 	$self->{'env'}	  = [ qw/ debug cacheage timeout attributes configfile / ];