Current-Users archive

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

Re: what to do if more aliases than MAXALIASES in /etc/hosts?

In article <20140116201146.6bf941df@zelz27>,
Matthias Drochner  <> 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.


Home | Main Index | Thread Index | Old Index