1 diff -ur busybox-1.2.2.1/networking/dnsd.c busybox-1.2.2.1-patched/networking/dnsd.c
2 --- busybox-1.2.2.1/networking/dnsd.c 2006-10-24 15:21:17.000000000 -0500
3 +++ busybox-1.2.2.1-patched/networking/dnsd.c 2007-04-12 12:49:53.000000000 -0500
6 #define is_daemon() (flags&16)
7 #define is_verbose() (flags&32)
13 - MAX_HOST_LEN = 16, // longest host name allowed is 15
14 + MAX_HOST_LEN = 41, // longest host name allowed is 40
15 IP_STRING_LEN = 18, // .xxx.xxx.xxx.xxx\0
17 //must be strlen('.in-addr.arpa') larger than IP_STRING_LEN
21 struct dns_entry *d = dnsentry;
24 + q = (char *)&(qs[1]);
31 - q = (char *)&(qs[1]);
33 fprintf(stderr, "\n%s: %d/%d p:%s q:%s %d",
34 __FUNCTION__, strlen(p), (int)(d->name[0]),
38 if (type == REQ_A) { /* search by host name */
40 + if(strlen(q) != strlen(p))
42 for(i = 1; i <= (int)(d->name[0]); i++)
43 if(tolower(qs[i]) != d->name[i])
46 fprintf(stderr,"fileconf: %s\n", fileconf);
52 /* reexec for vfork() do continue parent */
53 vfork_daemon_rexec(1, 0, argc, argv, "-d");
60 dnsentryinit(is_verbose());