Re: Initial version of a SuSE backend



On Mon, 2005-06-13 at 22:55 +0200, Kay Sievers wrote:
> On Mon, Jun 13, 2005 at 04:45:27PM -0400, Peter Jones wrote:
> > On Mon, 2005-06-13 at 21:00 +0200, Kay Sievers wrote:
> > >         if ((buf = svGetValue (file, "BOOTPROTO")))
> > >         {
> > >                 if (strcasecmp (buf, "dhcp"))
> > > +                       nm_debug ("method=%s, dhcp disabled", buf);
> > >                         sys_data->use_dhcp = FALSE;
> > >                 free (buf);
> > >         }
> > 
> > This is surely wrong.
> 
> Care to explain? It surely does what I expect...

Well, shouldn't you have:

if (strcasecmp (buf, "dhcp"))
{
	nm_debug ("method=%s, dhcp disabled", buf);
	sys_data->use_dhcp = FALSE;
}

instead?  Otherwise, nothing will use DHCP.

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]