[klibc] [PATCH] Don't try to guess the nameserver in ipconfig.
maximilian attems
max at stro.at
Wed Jul 6 11:47:23 PDT 2011
On Wed, 15 Jun 2011, maximilian attems wrote:
> On Wed, 08 Jun 2011, Ulrich Dangel wrote:
>
> > klibcs ipconfig tries to guess the nameserver if no nameserver is
> > provided. This may happen due to misconfigured dhcp or the use of
> > the ip= parameter.
> >
> > This patch removes the guessing from ipconfig as it is not possible for
> > any other script to determine if the provided nameserver is valid or
> > a guessed one. If the old behavior is really needed this could be easily
> > implemented in an external script.
> >
> > Closes: #594638
> >
> > Signed-off-by: Ulrich Dangel <uli at spamt.net>
>
> have to check older linux <= 2.0, haven't seen this guessing
> in any newer ones.
>
> Your analysis shows that ip_nameserver is unused outside of ipconfig,
> nor any sign of gethostbyname() or such. mount.c doesn't do dns resolving,
> so I'd guess your patch is a welcome fix for
> http://bugs.debian.org/594638
>
> > ---
> > usr/kinit/ipconfig/main.c | 5 -----
> > 1 files changed, 0 insertions(+), 5 deletions(-)
> >
merged and pushed, should appear shortly on mirrors.
thank you.
--
maks
More information about the klibc
mailing list