FreeBSD Bugzilla – Attachment 163656 Details for
Bug 204897
[jail] Jail names cannot start with a '0', resulting in 'jail: name cannot be numeric (unless it is the jid)'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Untested sample patch
jail.patch (text/plain), 413 bytes, created by
Sergey Zakharchenko
on 2015-11-29 18:13:10 UTC
(
hide
)
Description:
Untested sample patch
Filename:
MIME Type:
Creator:
Sergey Zakharchenko
Created:
2015-11-29 18:13:10 UTC
Size:
413 bytes
patch
obsolete
>--- sys/kern/kern_jail.c >+++ sys/kern/kern_jail.c >@@ -1588,7 +1588,7 @@ > /* Give a default name of the jid. */ > if (name[0] == '\0') > snprintf(name = numbuf, sizeof(numbuf), "%d", jid); >- else if (*namelc == '0' || (strtoul(namelc, &p, 10) != jid && >+ else if ((namelc[0] == '0' && namelc[1] == '\0') || (strtoul(namelc, &p, 10) != jid && > *p == '\0')) { > error = EINVAL; > vfs_opterror(opts,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204897
:
163656
|
164084