[Bug 259710] Environment variable JAIL causes pkg -j to malfunction

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Nov 2021 12:01:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259710

            Bug ID: 259710
           Summary: Environment variable JAIL causes pkg -j to malfunction
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bugs@rdls.net

If an environment variable called JAIL is defined when invoking "pkg -j" to
install a package (e.g. webp) into a jail (e.g. test), the POST-INSTALL script
fails to run with the following error message:

    jexec: jail "test" not found
    pkg: POST-INSTALL script failed

Reproduced using:
    # env JAIL=test pkg -j test install webp

Same problem occurs with "delete" command and POST-DEINSTALL script. The
problem is present in FreeBSD 12.1 and FreeBSD 13.0.

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