Bug#703747: netcfg: preseed netcfg: confusion or regression about disable_dhcp, disable_autoconfig and use_autoconfig
Charles Plessy, le Sun 24 Mar 2013 18:48:49 +0900, a écrit :
> debconf_get(client, "netcfg/disable_autoconfig");
>
> if (!strcmp(client->value, "true"))
> debconf_set(client, "netcfg/use_autoconfig", "false");
> else
> debconf_set(client, "netcfg/use_autoconfig", "true");
>
> To me, it seems that in plain English the above means:
Plain english doesn't work here: !strcmp(foo,bar) means "foo equal bar"
(in other words, , !(foo-bar), i.e. foo-bar equal 0)
Samuel
Reply to: