]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Fix setting expansion
authorMichael Brown <mcb30@ipxe.org>
Wed, 23 Mar 2011 10:08:16 +0000 (10:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 23 Mar 2011 10:08:16 +0000 (10:08 +0000)
commitb36882be34d13b585a61b58859d57f3c591dfb98
treef443124500e6c4be68ee12040964ee607cd6bb9c
parentf0cd4abd0780606e04b007251e91621695ba259b
[settings] Fix setting expansion

Commit 5fbd020 ("[settings] Display canonical setting name in output
of "show" command") introduced a regression causing all setting
expansions (e.g. "${net0/mac}") to expand to an empty string.

Fix by returning the formatted value length from
fetchf_named_setting(), as expected by the caller.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c