svn commit: r342571 - stable/11/sbin/ipfw
Andrey V. Elsukov
ae at FreeBSD.org
Fri Dec 28 10:10:17 UTC 2018
Author: ae
Date: Fri Dec 28 10:10:16 2018
New Revision: 342571
URL: https://svnweb.freebsd.org/changeset/base/342571
Log:
MFC r342298:
Allow use underscores and dots in service names without escaping.
PR: 234237
Modified:
stable/11/sbin/ipfw/ipfw2.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/11/sbin/ipfw/ipfw2.c Fri Dec 28 10:09:18 2018 (r342570)
+++ stable/11/sbin/ipfw/ipfw2.c Fri Dec 28 10:10:16 2018 (r342571)
@@ -940,7 +940,8 @@ strtoport(char *s, char **end, int base, int proto)
/*
* find separator. '\\' escapes the next char.
*/
- for (s1 = s; *s1 && (isalnum(*s1) || *s1 == '\\') ; s1++)
+ for (s1 = s; *s1 && (isalnum(*s1) || *s1 == '\\' ||
+ *s1 == '_' || *s1 == '.') ; s1++)
if (*s1 == '\\' && s1[1] != '\0')
s1++;
More information about the svn-src-all
mailing list