issue #22816: searchpath safeguard