mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
- take maintainer - add -z flag to not send mail for 0.0.0.0 IPs from busy dhcp networks - makepatch conform patchfiles
20 lines
620 B
C
20 lines
620 B
C
--- db.c.orig 2000-09-30 23:39:58 UTC
|
|
+++ db.c
|
|
@@ -283,7 +283,7 @@ elist_alloc(register u_int32_t a, regist
|
|
BCOPY(e, ep->e, 6);
|
|
if (h == NULL && !initializing)
|
|
h = getsname(a);
|
|
- if (h != NULL && !isdigit((int)*h))
|
|
+ if (h != NULL)
|
|
strcpy(ep->h, h);
|
|
ep->t = t;
|
|
return (ep);
|
|
@@ -301,7 +301,7 @@ check_hname(register struct ainfo *ap)
|
|
return;
|
|
ep = ap->elist[0];
|
|
h = getsname(ap->a);
|
|
- if (!isdigit((int)*h) && strcmp(h, ep->h) != 0) {
|
|
+ if (h != NULL && strcmp(h, ep->h) != 0) {
|
|
syslog(LOG_INFO, "hostname changed %s %s %s -> %s",
|
|
intoa(ap->a), e2str(ep->e), ep->h, h);
|
|
strcpy(ep->h, h);
|