Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2018 10:09:18 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r342570 - stable/12/sbin/ipfw
Message-ID:  <201812281009.wBSA9IZb049141@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Fri Dec 28 10:09:18 2018
New Revision: 342570
URL: https://svnweb.freebsd.org/changeset/base/342570

Log:
  MFC r342298:
    Allow use underscores and dots in service names without escaping.
  
    PR:		234237

Modified:
  stable/12/sbin/ipfw/ipfw2.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/12/sbin/ipfw/ipfw2.c	Fri Dec 28 08:53:26 2018	(r342569)
+++ stable/12/sbin/ipfw/ipfw2.c	Fri Dec 28 10:09:18 2018	(r342570)
@@ -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?201812281009.wBSA9IZb049141>