View | Details | Raw Unified | Return to bug 204897 | Differences between
and this patch

Collapse All | Expand All

(-)sys/kern/kern_jail.c (-1 / +1 lines)
Lines 1588-1594 Link Here
1588
		/* Give a default name of the jid. */
1588
		/* Give a default name of the jid. */
1589
		if (name[0] == '\0')
1589
		if (name[0] == '\0')
1590
			snprintf(name = numbuf, sizeof(numbuf), "%d", jid);
1590
			snprintf(name = numbuf, sizeof(numbuf), "%d", jid);
1591
		else if (*namelc == '0' || (strtoul(namelc, &p, 10) != jid &&
1591
		else if ((namelc[0] == '0' && namelc[1] == '\0') || (strtoul(namelc, &p, 10) != jid &&
1592
		    *p == '\0')) {
1592
		    *p == '\0')) {
1593
			error = EINVAL;
1593
			error = EINVAL;
1594
			vfs_opterror(opts,
1594
			vfs_opterror(opts,

Return to bug 204897