HomeFreeBSD

dhclient: fix pcp:pcp cleanup failure

Description

dhclient: fix pcp:pcp cleanup failure

If isc-dhcp44-server is not installed (as is the case the project's CI
servers) we don't create ngctl.shutdown, causing the 'rm' to fail.
That in turn causes the cleanup function to return non-zero, which
causes kyua to consider the test failed.

Use 'rm -f' instead, so we don't error even if the file doesn't exist.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Jun 17 2022, 7:01 AM
Parents
rGfc2e4f15a904: iommu_gas: Eliminate unnecessary wrappers
Branches
Unknown
Tags
Unknown