HomeFreeBSD

loader/zfs: Fix to actually return the last error

Description

loader/zfs: Fix to actually return the last error

The last fix, to try to return the last error, really returns the first
return code after the last error, which could be zero. Instead, return
the last error. Also, change rc to err to make it visually distinct from
rv, which is the cause of my error in e54bb0ad8058.

Reported by: Bill Sommerfeld <sommerfeld@hamachi.org>
Fixes: e54bb0ad8058
Sponsored by: Netflix

Details

Provenance
impAuthored on Feb 27 2024, 5:47 AM
Parents
rGaa80cfadff0b: lorder: Tweak invalid file test.
Branches
Unknown
Tags
Unknown