been specified. Eliminates spurious "Couldn't write ''" log messages.
Spotted while looking into Roman Gorelov's logs on another problem.
-/* $OpenBSD: dhclient.c,v 1.307 2014/05/18 15:17:50 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.308 2014/05/19 10:37:40 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
if (ifi->linkstat) {
client->state = S_REBOOTING;
state_reboot();
- } else {
+ } else if (strlen(path_option_db)) {
/* Let monitoring programs see link loss. */
write_file(path_option_db,
O_WRONLY | O_CREAT | O_TRUNC | O_SYNC |