HomeFreeBSD

Fix misuse of the basename() and dirname() functions.

Description

Fix misuse of the basename() and dirname() functions.

These functions are allowed to overwrite their input. Pull a copy of the
input parameter and call dirname() and basename() on that instead. Do
ensure that we reload the pathname value between calls.

Details

Provenance
edAuthored on
Parents
rS306098: Use kqueue(2) instead of select(2).
Branches
Unknown
Tags
Unknown