Fix a VMWare related bug in the installer
authorMatthias Schmidt <matthias@dragonflybsd.org>
Wed, 14 Jan 2009 12:16:03 +0000 (13:16 +0100)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Wed, 14 Jan 2009 12:16:03 +0000 (13:16 +0100)
commit7daaee58e8b828a4951bb466c19b066381826d2c
treec738f922a51735ff2d3b04f0bf37803e4849cdd0
parenta7db8e74c3a148c3a369aca4dbedd41462479258
Fix a VMWare related bug in the installer

Someone noticed that the installer generated a wrong ifconfig_<if> line
in /etc/rc.conf if used under VMWare and with the lnc(4) driver.  Strange
about that is, that this only happens with that particular driver.  My em(4)
interface under VMWare is detected properly and the rc.conf entry is
correct.

The value of the interface variable is corrupted somewhere between the
invocation of dhclient and the asprintf.  This commit saves the interface
name in string directly after the dhclient invocation which fixes the
problem described above.

This commit is more a work-around than a real fix.  If someone comes up with
a better fix, I'm happy to back this out and test the new one.  Until now, this
makes the network configuration in the installer with VMWare and lnc(4) work.
contrib/bsdinstaller-1.1.6/src/backend/installer/fn_configure.c