HomeFreeBSD

libbe: Avoid double printing cloning errors.

Description

libbe: Avoid double printing cloning errors.

be_clone calls be_clone_cb and both call set_error on the return
error path. set_error prints the error resulting in a double print.
be_clone_cb should just return the error code and allow be_clone
to print it.

PR: 265248
Reported by: Graham Perrin
Reviewed by: imp, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/685

Details

Provenance
john.grafton_runbox.comAuthored on Mar 15 2023, 3:14 AM
impCommitted on Mar 15 2023, 3:15 AM
Parents
rG0b0ae2e4cd22: jail: convert several functions from int to bool
Branches
Unknown
Tags
Unknown