diff options
author | jamie <jamie@FreeBSD.org> | 2017-03-30 01:37:37 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2017-03-30 01:37:37 +0000 |
commit | eeba3c4652d81aee48e29e67a74681909751311f (patch) | |
tree | 8717c5d21f92c54a5fb19cdb53444c52e73d5edb /usr.sbin | |
parent | 5188f712cf80ec9c342bb248531236581061820e (diff) | |
download | FreeBSD-src-eeba3c4652d81aee48e29e67a74681909751311f.zip FreeBSD-src-eeba3c4652d81aee48e29e67a74681909751311f.tar.gz |
MFC r316022,r316023:
Fix hexadecimal escape codes in jail.conf(5).
PR: 218154
Submitted by: Masahiro Konishi <mkonishi@sea.plala.or.jp>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/jail/jaillex.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/jail/jaillex.l b/usr.sbin/jail/jaillex.l index 04de85f..74b5191 100644 --- a/usr.sbin/jail/jaillex.l +++ b/usr.sbin/jail/jaillex.l @@ -216,7 +216,7 @@ text2lval(size_t triml, size_t trimr, int tovar) *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, int tovar) *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')); } } |