HomeFreeBSD

nfscl: Fix processing of a rare Rename reply case

Description

nfscl: Fix processing of a rare Rename reply case

When delegations are enabled (they are not by default in
the FreeBSD NFSv4 server), rename will check for and return
delegations. If the second of these DelegReturn operations
were to fail (they rarely do), then the code would not retry
the rename with returning delegations, as it is intended to do.

The patch fixes the problem, since the DelegReturn reply status
is the second iteration of the loop and not the first iteration.

As noted, this bug would have rarely manifested a problem, since
DelegReturn operations do not normally fail.

(cherry picked from commit 6aded1e6b2e5549120031032e1c7f8b002882327)

Details

Provenance
rmacklemAuthored on Dec 3 2023, 11:31 PM
Parents
rG890afd892c13: rc.conf: correct $ntp_leapfile_sources
Branches
Unknown
Tags
Unknown