svn commit: r276289 - stable/10/sys/boot/uboot/common
Ian Lepore
ian at FreeBSD.org
Sat Dec 27 05:10:08 UTC 2014
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;
}
More information about the svn-src-stable-10
mailing list