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-expected-behaviour.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3265 - (show annotations) (download)
Wed Jul 18 12:45:43 2007 UTC (6 years, 7 months ago) by tg
File size: 1223 byte(s)
copy trunk/freewrt r3264 into a new branch for making the nfo system
because upgrading the old adk branch would be a hell more work

1 --- busybox-1.4.2/miscutils/crontab.c.orig Thu May 24 11:11:37 2007
2 +++ busybox-1.4.2/miscutils/crontab.c Fri May 25 13:44:07 2007
3 @@ -297,6 +297,8 @@ static void EditFile(const char *user, c
4 exit(0);
5 ptr = getenv("VISUAL");
6 if (ptr == NULL || strlen(ptr) > 256)
7 + ptr = getenv("EDITOR");
8 + if (ptr == NULL || strlen(ptr) > 256)
9 ptr = PATH_VI;
10
11 snprintf(visual, sizeof(visual), "%s %s", ptr, file);
12 --- busybox-1.4.2/networking/netmsg.c.orig Wed Jun 6 15:28:44 2007
13 +++ busybox-1.4.2/networking/netmsg.c Fri Jun 8 13:12:08 2007
14 @@ -34,6 +34,8 @@ int netmsg_main(int argc, char **argv)
15 exit(1);
16 }
17
18 + while (strlen(argv[2]) > 0) {
19 +
20 memset(&addr, 0, sizeof(addr));
21 addr.sin_family = AF_INET;
22 addr.sin_addr.s_addr = inet_addr(argv[1]);
23 @@ -44,6 +46,7 @@ int netmsg_main(int argc, char **argv)
24 buf[1] = 0xad;
25
26 strncpy(buf + 2, argv[2], 998);
27 + argv[2] += strlen(buf + 2);
28
29 if (setsockopt (s, SOL_SOCKET, SO_BROADCAST, (caddr_t) &optval, sizeof (optval)) < 0) {
30 perror("setsockopt()");
31 @@ -53,6 +56,8 @@ int netmsg_main(int argc, char **argv)
32 if (sendto(s, buf, 1001, 0, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
33 perror("sendto()");
34 goto fail;
35 + }
36 +
37 }
38
39 return 0;

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