]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug introduced with r251190, in which a small hunk was forgotten in
authorDevin Teske <dteske@FreeBSD.org>
Sat, 8 Jun 2013 21:45:32 +0000 (21:45 +0000)
committerDevin Teske <dteske@FreeBSD.org>
Sat, 8 Jun 2013 21:45:32 +0000 (21:45 +0000)
commitd7b85d278934ffdd693da924bc59308a4c28049d
tree3c3e59e603b7f04852c3dde5b0cd5865698d57e9
parent04d380df0c877f132142363e7a17086052e39e12
Fix a bug introduced with r251190, in which a small hunk was forgotten in
the performance conversion process.

The effect of this was the following error when selecting the menu
"Startup"->"View/Edit Startup Configuration"->"Add New"->"Add From List":

[: -eq: unexpected operator

By running `bsdconfig -d' as root to enable debugging, this turns into:

DEBUG: f_getvar: var=[text] value=[
Error: Expected a number for token 4 of --menu.
Use --help to list options.] r=0
[: -eq: unexpected operator

Indicating that the fourth token for --menu which should be $height was
instead a string (the first item of $menu_list) because it was using the
old size-calculation method and $size was now null (needed to use instead
the new size variables of $height $width and $rows).
usr.sbin/bsdconfig/startup/share/rcconf.subr