It's not an error to call configResolv() early.

This commit is contained in:
Jordan K. Hubbard 1997-02-14 02:55:25 +00:00
parent 8ae5bda5aa
commit 6858c47aeb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22695
3 changed files with 3 additions and 9 deletions

View File

@ -437,10 +437,8 @@ configResolv(void)
if (!cp || !*cp)
goto skip;
fp = fopen("/etc/resolv.conf", "w");
if (!fp) {
msgConfirm("Unable to open /etc/resolv.conf! You will need to do this manually.");
if (!fp)
return;
}
if (variable_get(VAR_DOMAINNAME))
fprintf(fp, "domain\t%s\n", variable_get(VAR_DOMAINNAME));
fprintf(fp, "nameserver\t%s\n", cp);

View File

@ -437,10 +437,8 @@ configResolv(void)
if (!cp || !*cp)
goto skip;
fp = fopen("/etc/resolv.conf", "w");
if (!fp) {
msgConfirm("Unable to open /etc/resolv.conf! You will need to do this manually.");
if (!fp)
return;
}
if (variable_get(VAR_DOMAINNAME))
fprintf(fp, "domain\t%s\n", variable_get(VAR_DOMAINNAME));
fprintf(fp, "nameserver\t%s\n", cp);

View File

@ -437,10 +437,8 @@ configResolv(void)
if (!cp || !*cp)
goto skip;
fp = fopen("/etc/resolv.conf", "w");
if (!fp) {
msgConfirm("Unable to open /etc/resolv.conf! You will need to do this manually.");
if (!fp)
return;
}
if (variable_get(VAR_DOMAINNAME))
fprintf(fp, "domain\t%s\n", variable_get(VAR_DOMAINNAME));
fprintf(fp, "nameserver\t%s\n", cp);