commit | 6cd84dac84f72dde437790cc620c8638d3591d00 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 21 14:57:54 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 21 14:57:54 2007 +0000 |
tree | 1c822ba1859d04ab9af79210d7f331207738ed7b | |
parent | e8feca085dbcd0fb97aa5af1a8e751affb88df48 [diff] [blame] |
Three patches from FreeWRT people
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 76c382e..69f2e31 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c
@@ -296,7 +296,9 @@ if (ChangeUser(user, 1) < 0) exit(0); ptr = getenv("VISUAL"); - if (ptr == NULL || strlen(ptr) > 256) + if (ptr == NULL) + ptr = getenv("EDITOR"); + if (ptr == NULL) ptr = PATH_VI; ptr = xasprintf("%s %s", ptr, file);