aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-02-07 12:59:35 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-02-07 12:59:35 +0000
commit04f40bc55ed4f39d6c625b017bb16907f7d50c05 (patch)
tree5a6d9c725f4093290107736e88baa2805be9301f
parent281e6e2253e737675458e75624a5ba42f0a5f4d6 (diff)
downloadsyslinux-04f40bc55ed4f39d6c625b017bb16907f7d50c05.tar.gz
syslinux-04f40bc55ed4f39d6c625b017bb16907f7d50c05.tar.xz
syslinux-04f40bc55ed4f39d6c625b017bb16907f7d50c05.zip
run_command: Use load_kernel() which understands labels
load_kernel() understands how to handle labels from config files whereas create_args_and_load() assumes that the cmdline is a COM32 file. Callers of syslinux_run_command() may want to pass labels, so use a function that allows that. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--com32/lib/syslinux/run_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/run_command.c b/com32/lib/syslinux/run_command.c
index 0efb61f2..7e4dc41b 100644
--- a/com32/lib/syslinux/run_command.c
+++ b/com32/lib/syslinux/run_command.c
@@ -37,7 +37,7 @@ int syslinux_run_command(const char *command)
if (!lm_command)
return -1;
- create_args_and_load(lm_command);
+ load_kernel(lm_command);
/* Should not return even on failure, but in case... */
lfree(lm_command);