English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/common-nfo/package/busybox/patches/980-crontab-use-editor.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3427 - (show annotations) (download)
Wed Aug 8 11:08:41 2007 UTC (6 years, 6 months ago) by tg
File size: 487 byte(s)
merge in trunk rev. 3426
1 $FreeWRT$
2
3 submitted as http://bugs.busybox.net/view.php?id=1437
4
5 --- busybox-1.4.2.orig/miscutils/crontab.c Sun Mar 18 16:59:11 2007
6 +++ busybox-1.4.2/miscutils/crontab.c Fri Jul 20 11:39:04 2007
7 @@ -297,6 +297,8 @@ static void EditFile(const char *user, c
8 exit(0);
9 ptr = getenv("VISUAL");
10 if (ptr == NULL || strlen(ptr) > 256)
11 + ptr = getenv("EDITOR");
12 + if (ptr == NULL || strlen(ptr) > 256)
13 ptr = PATH_VI;
14
15 snprintf(visual, sizeof(visual), "%s %s", ptr, file);

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20