Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2017 13:27:39 +0000 (UTC)
From:      Jamie Gritton <jamie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316022 - head/usr.sbin/jail
Message-ID:  <201703271327.v2RDRdcp093203@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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'));
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703271327.v2RDRdcp093203>