Date: Fri, 21 Dec 2018 10:41:45 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342298 - head/sbin/ipfw Message-ID: <201812211041.wBLAfjSB095538@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Fri Dec 21 10:41:45 2018 New Revision: 342298 URL: https://svnweb.freebsd.org/changeset/base/342298 Log: Allow use underscores and dots in service names without escaping. PR: 234237 MFC after: 1 week Modified: head/sbin/ipfw/ipfw2.c Modified: head/sbin/ipfw/ipfw2.c ============================================================================== --- head/sbin/ipfw/ipfw2.c Fri Dec 21 08:15:31 2018 (r342297) +++ head/sbin/ipfw/ipfw2.c Fri Dec 21 10:41:45 2018 (r342298) @@ -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++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812211041.wBLAfjSB095538>