Date: Sun, 22 Jan 2017 11:13:54 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r312619 - stable/11/usr.sbin/pciconf Message-ID: <201701221113.v0MBDs5h080511@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701221113.v0MBDs5h080511>