- Upgrading from older FreeBSD versions can result in errors
- /var/run can be a tmpfs, and this should be handled correctly
dhclient is hard-coded to use _dhcp and falls back to nobody if
that user doesn't exist, so mimic that behaviour here.
Differential D28843
Create dhclient pid directory if it doesn't exist crees on Feb 21 2021, 7:10 PM. Authored by Tags None Referenced Files
Details
dhclient is hard-coded to use _dhcp and falls back to nobody if Reboot- works, and creates the dir correctly
Diff Detail
Event TimelineComment Actions Hi Mark, This was a problem starting with D16584- this is an easy fix. Would you mind if I asked you to review/approve? Happy to find someone else if this is cheeky. Chris
Comment Actions Thanks, I think this is ok. I would suggest adding a short comment explaining why we create the piddir there. It's also not obvious to me why dhclient itself shouldn't create the directory, but I think this is a reasonable solution, assuming you intend to merge to 13.0. Comment Actions I don't think daemons usually create piddirs- this is very common in ports land. Usually it's because they don't have permission for /var/run, so I guess they can't, but it's certainly not out of the ordinary. I'll commit with this comment:
Thanks for taking the time to review. |