I just got bitten by this issue. It's fixed in current, The patch applies successfully to 13 and 12, and works as intended, so could it please be MFCed?
https://cgit.freebsd.org/src/commit/libexec/rc/rc.subr?id=6ba108e52d175b6833437c8627ae5d0546a4e102 Cheers, Jamie
