blob: 08c20bc0d13eb770bcdf2c30e5712dac6d6ec532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
fix 'crontab -e' to look at $EDITOR and not $VISUAL
--- crontab.1
+++ crontab.1
@@ -27,5 +27,5 @@
specify a different user and/or crontab directory. Generally the -e
option is used to edit your crontab. crontab will use /usr/bin/vi or
-the editor specified by your VISUAL environment variable to edit the
+the editor specified by your EDITOR environment variable to edit the
crontab.
.PP
--- crontab.c
+++ crontab.c
@@ -312,5 +312,5 @@
if (ChangeUser(user, 1) < 0)
exit(0);
- if ((ptr = getenv("VISUAL")) == NULL || strlen(ptr) > 256)
+ if ((ptr = getenv("EDITOR")) == NULL || strlen(ptr) > 256)
ptr = PATH_VI;
|