svn commit: r312619 - stable/11/usr.sbin/pciconf
Baptiste Daroussin
bapt at FreeBSD.org
Sun Jan 22 11:13:55 UTC 2017
Author: bapt
Date: Sun Jan 22 11:13:53 2017
New Revision: 312619
URL: https://svnweb.freebsd.org/changeset/base/312619
Log:
MFC r311953 (by cem)
pciconf(8): Reallow trailing colon in selectors
Reallow device selectors to have a trailing colon, as documented in the
manual page. This was broken along with some unrelated cleanups in
r295806.
PR: 215979
Reported by: David Boyd <David.Boyd49 at twc.com>
Sponsored by: Dell EMC Isilon
Modified:
stable/11/usr.sbin/pciconf/pciconf.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/pciconf/pciconf.c
==============================================================================
--- stable/11/usr.sbin/pciconf/pciconf.c Sun Jan 22 07:05:41 2017 (r312618)
+++ stable/11/usr.sbin/pciconf/pciconf.c Sun Jan 22 11:13:53 2017 (r312619)
@@ -917,11 +917,8 @@ parsesel(const char *str)
while (isdigit(*ep) && i < 4) {
selarr[i++] = strtoul(ep, &eppos, 10);
ep = eppos;
- if (*ep == ':') {
+ if (*ep == ':')
ep++;
- if (*ep == '\0')
- i = 0;
- }
}
if (i > 0 && *ep == '\0') {
sel.pc_func = (i > 2) ? selarr[--i] : 0;
More information about the svn-src-stable-11
mailing list