Re: what to do if more aliases than MAXALIASES in /etc/hosts?
In article 20140116201146.6bf941df@zelz27, Matthias Drochner m.droch...@fz-juelich.de wrote: -=-=-=-=-=- Hi - just found that the hosts table distributed in my company has an entry with ~40 aliases. There is a maximum of MAXALIASES=35 in NetBSD, and the effect is that not just this line is ignored but also the rest of the hosts file. This looks unreasonable. Here is a patch which fixes this for me - the offending line is ignored but the following lines are read. One could also just ignore the bad line in gethostent_r(), or even use the first MAXALIASES aliases and only ignore the aliases which don't fit. What do you think? I removed the limit. christos
Re: what to do if more aliases than MAXALIASES in /etc/hosts?
On Thu, 16 Jan 2014 20:59:23 + Christos Zoulas chris...@astron.com wrote: I removed the limit. Thanks for looking into this, but now it stops processing the hosts file at the first line with 12 aliases... best regards Matthias Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt