root/trunk/freewrt/package/busybox/patches/980-crontab-use-editor.patch

Revision 3296, 487 bytes (checked in by tg, 5 years ago)

sent these to upstream

  • busybox-1.4.2/miscutils/crontab.c

    old new  
    297297                        exit(0); 
    298298                ptr = getenv("VISUAL"); 
    299299                if (ptr == NULL || strlen(ptr) > 256) 
     300                        ptr = getenv("EDITOR"); 
     301                if (ptr == NULL || strlen(ptr) > 256) 
    300302                        ptr = PATH_VI; 
    301303 
    302304                snprintf(visual, sizeof(visual), "%s %s", ptr, file); 
Note: See TracBrowser for help on using the browser.