Subject: deny !nameserved not working in 2.5.0

From: Geir Johannessen <[email-masked]>
Date: Wed, 26 May 1999 15:42:59 +0200 (MET DST)

When switching from 2.4.2.b18.vr14 to 2.5.0 I noticed an error in the deny
!nameserved clause.

>From my /etc/ftpd/ftpaccess file:

# deny <addrglob> <message_file>
deny    !nameserved     /etc/ftpd/msgs/nameserved

What happens is that no one can log into the server. When !nameserved fails
the following text can be printed:

You only have IP address %R and no reverse mapping.

With 2.4.2.b18.vr14 this would read

You only have IP address 129.241.56.18 and no reverse mapping.

With 2.5.0 this reads

You only have IP address biff.stud.ntnu.no and no reverse mapping.

So clearly there is a mixup between IP address and hostname. If you try
reverse mapping of the IP address biff.stud.ntnu.no (not even numeric...)
it will of course not exist.

The error is in access.c at line 1132. I will leave it to you to make the
appropriate fixes.

--
Geir Johannessen          #  [email-masked]
E B Schieldropsvei 35-25  #  http://2180058000/~joge/
N-7033 TRONDHEIM, NORWAY  #  Tlf private +47-73888989, job +47-73598048
"Keep anything long enough and you can throw it away.
 Throw it away and you will need it next day."