svn commit: r316022 - head/usr.sbin/jail
Jamie Gritton
jamie at FreeBSD.org
Mon Mar 27 13:27:40 UTC 2017
Author: jamie
Date: Mon Mar 27 13:27:39 2017
New Revision: 316022
URL: https://svnweb.freebsd.org/changeset/base/316022
Log:
Fix hexadecimal escape codes in jail.conf(5).
PR: 218154
Submitted by: Masahiro Konishi <mkonishi at sea.plala.or.jp>
MFC after: 3 days
Modified:
head/usr.sbin/jail/jaillex.l
Modified: head/usr.sbin/jail/jaillex.l
==============================================================================
--- head/usr.sbin/jail/jaillex.l Mon Mar 27 12:34:29 2017 (r316021)
+++ head/usr.sbin/jail/jaillex.l Mon Mar 27 13:27:39 2017 (r316022)
@@ -216,7 +216,7 @@ text2lval(size_t triml, size_t trimr, in
*d = *++s - '0';
else if (s[1] >= 'A' && s[1] <= 'F')
*d = *++s + (0xA - 'A');
- else if (s[1] >= 'a' && s[1] <= 'a')
+ else if (s[1] >= 'a' && s[1] <= 'F')
*d = *++s + (0xa - 'a');
else
break;
@@ -226,7 +226,7 @@ text2lval(size_t triml, size_t trimr, in
*d = *d * 0x10 + (*++s - '0');
else if (s[1] >= 'A' && s[1] <= 'F')
*d = *d * 0x10 + (*++s + (0xA - 'A'));
- else if (s[1] >= 'a' && s[1] <= 'a')
+ else if (s[1] >= 'a' && s[1] <= 'f')
*d = *d * 0x10 + (*++s + (0xa - 'a'));
}
}
More information about the svn-src-all
mailing list