aboutsummaryrefslogtreecommitdiff
path: root/networking/rptaddrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/rptaddrs.c')
-rw-r--r--networking/rptaddrs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/networking/rptaddrs.c b/networking/rptaddrs.c
index 3285d36..33d20cf 100644
--- a/networking/rptaddrs.c
+++ b/networking/rptaddrs.c
@@ -285,6 +285,14 @@ static int setup_dhcpv4(FILE *of)
in_file= fopen(NETWORK_INFO, "r");
if (in_file == NULL)
{
+ if (errno == ENOENT)
+ {
+ /* Probe is configure for DHCP but didn't get a
+ * DHCP lease.
+ */
+ fprintf(of, ", " DBQ(inet-dhcp) ": true");
+ return 0;
+ }
report_err("unable to open '%s'", NETWORK_INFO);
return -1;
}