diff --git a/release/sysinstall/config.c b/release/sysinstall/config.c index 2e1a1cdb3962..31985969c754 100644 --- a/release/sysinstall/config.c +++ b/release/sysinstall/config.c @@ -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); diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 2e1a1cdb3962..31985969c754 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -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); diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 2e1a1cdb3962..31985969c754 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -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);