[Bug 266802] /usr/libexec/bsdinstall/script: 3: Bad file descriptor

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 21 Oct 2022 18:29:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266802

--- Comment #5 from John Grafton <john.grafton@runbox.com> ---
This bug was fixed in CURRENT with this commit:

commit 1f7746d81f53447ac15cc99395bb714d4dd0a4da
Author: Corvin Köhne <CorvinK@beckhoff.com>
Date:   Tue May 3 16:00:09 2022 +0200

    bsdinstall: stop messing with file descriptors

    Throughout the bsdinstall script fd 3 is used by f_dprintf (set through
    $TERMINAL_STDOUT_PASSTHRU). By closing file descriptor 3 here, the
    final f_dprintf "Installation Completed ... does not work anymore.

    By putting the code into a subshell, file descriptors can be edited
    without interference with the calling script.

    Reviewed by:            emaste
    Differential Revision:  https://reviews.freebsd.org/D35113
    Sponsored by:           Beckhoff Automation GmbH & Co. KG
    MFC after:              3 days

It doesn't appear to have landed in 13.1-RELEASE yet.

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