[Bug 284961] $name in jail.conf is empty if it's a number
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 284961] $name in jail.conf is empty if it's a number"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Feb 2025 21:44:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284961
Jamie Gritton <jamie@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|jail@FreeBSD.org |jamie@FreeBSD.org
CC| |jamie@FreeBSD.org
Status|New |Open
--- Comment #1 from Jamie Gritton <jamie@FreeBSD.org> ---
I'm tempted to call this "works as intended" because yes this is exactly how I
intended it to work - even though the whole idea of allowing a jail to be
created with a pre-determined JID was in retrospect an mistake.
If a jail block in jail.conf is labeled with a number, then it's for a jail
identified by its JID, and thus it doesn't (yet) have a name. Just like if a
jail block is labeled with a non-numeric name it doesn't (yet) have a jid.
Yes, if you want, you could say name=$jid. You could even make it a default
that would be overridden by any jail that is (properly) specified by name.
--
You are receiving this mail because:
You are on the CC list for the bug.