Browse Source

fix buglets

document

r931
master
David Whedon 20 years ago
parent
commit
31233936b9
  1. 1
      debian/changelog
  2. 8
      netcfg.c

1
debian/changelog

@ -2,6 +2,7 @@ netcfg (0.15) unstable; urgency=low
* NOT YET RELEASED
* remove util.[ch] (functions now in libdebian-installer)
* check hostname for rfc 1123 compliance
-- David Kimdon <dwhedon@debian.org> Thu, 5 Sep 2002 20:34:34 -0700

8
netcfg.c

@ -342,8 +342,8 @@ netcfg_get_common(struct debconfclient *client, char **interface,
if ((len < 2) ||
(len > 63) ||
(strspn(*hostname, valid_chars) != len) ||
(*hostname[len - 1] == '-') ||
(*hostname[0] == '-')) {
((*hostname)[len - 1] == '-') ||
((*hostname)[0] == '-')) {
client->command(client, "subst", "netcfg/invalid_hostname",
"hostname", *hostname, NULL);
client->command(client, "input", "high",
@ -351,9 +351,11 @@ netcfg_get_common(struct debconfclient *client, char **interface,
client->command(client, "go", NULL);
free(*hostname);
*hostname = NULL;
client->command(client, "set",
"netcfg/get_hostname", "debian");
}
} while (!hostname);
} while (!*hostname);
free(*domain);

Loading…
Cancel
Save