netcfg does not set netcfg/dhcp_ntp_servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcfg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
netcfg in precise no longer has logic to set netcfg/
netcfg-1.51ubuntu3 in lucid has the following logic in dhcp.c:
/*
* Record any ntp server information from DHCP for later
* verification and use by clock-setup
*/
if ((d = fopen(NTP_
}
netcfg-1.68ubuntu14 in precise has the following, which never calls debconf_set:
/*
* Record any ntp server information from DHCP for later
* verification and use by clock-setup
*/
if ((d = fopen(NTP_
char ntpservers[
int i;
if (fgets(ntpservers, DHCP_OPTION_LEN, d) == NULL) {
/* ignore errors; we check for empty strings later */
}
fclose(d);
if (!empty_
ptr = ntpservers;
for (i = 0; i < NETCFG_
srv = strtok_r(ptr, " \n\t", &ptr);
if (srv) {
} else {
}
}
}
}