Interface names have no limitations on the allowed character set, only
a length restriction.
Widen the allowed character set for interface names to include any
printable character.
PR: 290916
Differential D53865
examples/jails: Allow any character in interface names Authored by jlduran on Nov 21 2025, 7:41 PM. Tags None Referenced Files
Subscribers Tokens
Details
Interface names have no limitations on the allowed character set, only Widen the allowed character set for interface names to include any PR: 290916
Diff Detail
Event TimelineComment Actions Using tabs, spaces or newlines in interface names is just asking for trouble. A lot of the rc.d shell code is not properly written to deal with such intentional stupidity. Comment Actions Right, I agree, I believe isprint(3) does not include those... Comment Actions Interesting. BastilleBSD has code to automatically sed ‘s/-/_/‘ for the /etc/rc.conf part when jail names contain a hyphen. I would at least consider allowing (.) as they are very common when using vlan with interfaces. Comment Actions This is an excellent change. Moving forward with landing it. Thank you for your hard work (sorry for the delay). |