[Bug 204897] [jail] Jail names cannot start with a '0', resulting in 'jail: name cannot be numeric (unless it is the jid)'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 10 19:19:30 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204897
Jamie Gritton <jamie at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #163656|0 |1
is obsolete| |
Status|New |Open
CC| |jamie at FreeBSD.org
Assignee|freebsd-bugs at FreeBSD.org |jamie at FreeBSD.org
--- Comment #1 from Jamie Gritton <jamie at FreeBSD.org> ---
Created attachment 164084
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164084&action=edit
check for non-numeric or canonical jid
I'm trying to remember a few years back, but I think the reason I checked for
namelc[0] == '0' is to weed out leading zeroes (since the "!= jid" test will
already catch a name of "0"). That was clearly not done right.
This patch will allow any name that's not fully numeric, such as your "0day"
example, also the jid in normal form (no leading zero, space, '+'), but no
other fully numeric names. I'll submit it shortly unless anyone sees some
problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list