# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # patch-al # patch-am # echo x - patch-al sed 's/^X//' >patch-al << 'END-of-patch-al' X--- db.c.orig Sat Sep 30 19:39:58 2000 X+++ db.c Tue Apr 13 17:42:20 2004 X@@ -283,7 +283,7 @@ X BCOPY(e, ep->e, 6); X if (h == NULL && !initializing) X h = getsname(a); X- if (h != NULL && !isdigit((int)*h)) X+ if (h != NULL) X strcpy(ep->h, h); X ep->t = t; X return (ep); X@@ -301,7 +301,7 @@ X return; X ep = ap->elist[0]; X h = getsname(ap->a); X- if (!isdigit((int)*h) && strcmp(h, ep->h) != 0) { X+ if (h != NULL && strcmp(h, ep->h) != 0) { X syslog(LOG_INFO, "hostname changed %s %s %s -> %s", X intoa(ap->a), e2str(ep->e), ep->h, h); X strcpy(ep->h, h); END-of-patch-al echo x - patch-am sed 's/^X//' >patch-am << 'END-of-patch-am' X--- dns.c.orig Fri Oct 13 21:50:52 2000 X+++ dns.c Tue Apr 13 17:35:07 2004 X@@ -137,7 +137,7 @@ X return (0); X } X X-/* Return the cannonical name of the host */ X+/* Return the canonical name of the host (NULL if not found) */ X char * X gethname(u_int32_t a) X { X@@ -150,18 +150,18 @@ X hp = gethostbyaddr((char *)&a, sizeof(a), AF_INET); X _res.options = options; X if (hp == NULL) X- return (intoa(a)); X+ return NULL; X return (hp->h_name); X } X X-/* Return the simple name of the host */ X+/* Return the simple name of the host (NULL if not found) */ X char * X getsname(register u_int32_t a) X { X register char *s, *cp; X X s = gethname(a); X- if (!isdigit((int)*s)) { X+ if (s != NULL) { X cp = strchr(s, '.'); X if (cp != NULL) X *cp = '\0'; END-of-patch-am exit