aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/rc/rc.d/dhclient5
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/dhclient b/libexec/rc/rc.d/dhclient
index 520a0850ccbc..765e38266408 100755
--- a/libexec/rc/rc.d/dhclient
+++ b/libexec/rc/rc.d/dhclient
@@ -49,6 +49,11 @@ dhclient_prestart()
rc_flags="${rc_flags} -b"
fi
+
+ # /var/run/dhclient is not guaranteed to exist,
+ # e.g. if /var/run is a tmpfs
+ install -d -o root -g wheel -m 755 ${pidfile%/*}
+
rc_flags="${rc_flags} ${ifn}"
}