diff options
author | ian <ian@FreeBSD.org> | 2014-12-27 05:10:07 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-12-27 05:10:07 +0000 |
commit | cea961188c20d382d6000b6f30904f20b0ab65ea (patch) | |
tree | 48bbf5ca28f71bb77f5196885a3b2cdf3e8e8a4e /sys/boot | |
parent | def901a53cd8be38c60602561fe19bdd708e73b5 (diff) | |
download | FreeBSD-src-cea961188c20d382d6000b6f30904f20b0ab65ea.zip FreeBSD-src-cea961188c20d382d6000b6f30904f20b0ab65ea.tar.gz |
r276026:
Allow whitspace to appear between device name and unit number in loaderdev.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/uboot/common/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/boot/uboot/common/main.c b/sys/boot/uboot/common/main.c index 75e6854..919b541 100644 --- a/sys/boot/uboot/common/main.c +++ b/sys/boot/uboot/common/main.c @@ -212,10 +212,11 @@ get_load_device(int *type, int *unit, int *slice, int *partition) 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; } |