Date: Sat, 27 Dec 2014 05:10:08 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r276289 - stable/10/sys/boot/uboot/common Message-ID: <201412270510.sBR5A8RS054745@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Sat Dec 27 05:10:07 2014 New Revision: 276289 URL: https://svnweb.freebsd.org/changeset/base/276289 Log: r276026: Allow whitspace to appear between device name and unit number in loaderdev. Modified: stable/10/sys/boot/uboot/common/main.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/boot/uboot/common/main.c ============================================================================== --- stable/10/sys/boot/uboot/common/main.c Sat Dec 27 04:55:45 2014 (r276288) +++ stable/10/sys/boot/uboot/common/main.c Sat Dec 27 05:10:07 2014 (r276289) @@ -212,10 +212,11 @@ get_load_device(int *type, int *unit, in p = get_device_type(devstr, type); - /* - * Empty device string, or unknown device name, or a bare, known - * device name. - */ + /* Ignore optional spaces after the device name. */ + while (*p == ' ') + p++; + + /* Unknown device name, or a known name without unit number. */ if ((*type == -1) || (*p == '\0')) { return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412270510.sBR5A8RS054745>