diff options
Diffstat (limited to 'sys-process/dcron/files/dcron-2.9-EDITOR.patch')
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-EDITOR.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-process/dcron/files/dcron-2.9-EDITOR.patch b/sys-process/dcron/files/dcron-2.9-EDITOR.patch new file mode 100644 index 000000000000..08c20bc0d13e --- /dev/null +++ b/sys-process/dcron/files/dcron-2.9-EDITOR.patch @@ -0,0 +1,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; + |