[Bug 265248] bectl warns twice when the user tries once to create an existing environment (boot environment name already taken)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 Mar 2023 03:20:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265248

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=8e933d9c598ec847081c322e7ae9a46bf7897886

commit 8e933d9c598ec847081c322e7ae9a46bf7897886
Author:     John Grafton <john.grafton@gmail.com>
AuthorDate: 2023-03-15 03:14:14 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-03-15 03:15:17 +0000

    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

 lib/libbe/be.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.