svn commit: r333875 - head/sys/dev/usb

Edward Tomasz Napierala trasz at FreeBSD.org
Sat May 19 10:49:52 UTC 2018


Author: trasz
Date: Sat May 19 10:49:51 2018
New Revision: 333875
URL: https://svnweb.freebsd.org/changeset/base/333875

Log:
  Permit "(", ")", ":", and "/" in USB string descriptors.
  This way we can properly show descriptors with URLs in them.
  
  Reviewed by:	hselasky@
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/usb/usb_request.c

Modified: head/sys/dev/usb/usb_request.c
==============================================================================
--- head/sys/dev/usb/usb_request.c	Sat May 19 07:31:35 2018	(r333874)
+++ head/sys/dev/usb/usb_request.c	Sat May 19 10:49:51 2018	(r333875)
@@ -1155,7 +1155,11 @@ usbd_req_get_string_any(struct usb_device *udev, struc
 		    *s == '+' ||
 		    *s == ' ' ||
 		    *s == '.' ||
-		    *s == ',') {
+		    *s == ',' ||
+		    *s == ':' ||
+		    *s == '/' ||
+		    *s == '(' ||
+		    *s == ')') {
 			/* allowed */
 			s++;
 		}


More information about the svn-src-head mailing list