[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for cfengine (1.5.4 & 1.6.0) proto.c

From: Andrew Mayhew
Subject: patch for cfengine (1.5.4 & 1.6.0) proto.c
Date: Wed, 20 Dec 2000 13:51:57 -0800
User-agent: Mutt/1.2.5i

The IndentiyForVerification routines in proto.c erroneously assumes
that VDOMAIN will actually be set to some value.  When a non-fully
qualified hostname is passed and an empty domain is attempted to be
appended to fqname you end up with fqname == hostname. as the result,
which will break further host lookups.  The only situation that I have
found so far is with cfrun where the cfrun.hosts file does not contain
a line with `domain = some.domain'.  While there appears to be some
changes to this routine between 1.5.4 and 1.6.0, this error persists.

I ran into this problem/bug and only found that a domain directive
could be put into the cfrun.hosts file after looking at the source for
cfrun.  Maybe better with documentation of the cfrun.hosts file or if
cfrun had thrown an error when the domain was not set I would have
avoided this problem, but I am glad to at least have the source
available to fill in the few documentation holes I run into.

--Andrew Mayhew <address@hidden>

Attachment: proto.c.diff-1.5.4
Description: Text document

Attachment: proto.c.diff-1.6.0
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]