diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 13:40:04 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 13:40:04 -0800 |
commit | 5e50b4d4faf398f072c0dea814b11db1a95efeec (patch) | |
tree | 19dcc5e2a882156516ebcd8403b5e40921bef647 /core/parseconfig.inc | |
parent | 3399f97a70cdca0cb05129ea3fb5e9dd42c35d9c (diff) | |
download | syslinux-5e50b4d4faf398f072c0dea814b11db1a95efeec.tar.gz |
config: allow a chdir at the time a new configuration file is loaded
If a directory name/path prefix is appended to a loaded configuration
file, do a chdir at that point. We finally have all the mechanism to
do this right.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/parseconfig.inc')
-rw-r--r-- | core/parseconfig.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/parseconfig.inc b/core/parseconfig.inc index ad89f58d..b30dbc2a 100644 --- a/core/parseconfig.inc +++ b/core/parseconfig.inc @@ -104,7 +104,7 @@ pc_kernel: cmp byte [VKernel],0 mov [VKernelBuf+vk_type],al call pc_getline mov di,VKernelBuf+vk_rname - pm_call mangle_name + pm_call pm_mangle_name .err: ret ; @@ -147,7 +147,7 @@ pc_setint16: pc_filecmd: push ax ; Function to tailcall call pc_getline mov di,MNameBuf - pm_call mangle_name + pm_call pm_mangle_name pm_call pm_searchdir jnz .ok pop ax ; Drop the successor function @@ -160,7 +160,7 @@ pc_filecmd: push ax ; Function to tailcall pc_opencmd: push ax ; Function to tailcall call pc_getline mov di,MNameBuf - pm_call mangle_name + pm_call pm_mangle_name call core_open jnz .ok pop ax ; Drop the successor function @@ -289,7 +289,7 @@ pc_serial: call getint pc_filename: push ax call pc_getline pop di - pm_call mangle_name ; Mangle file name + pm_call pm_mangle_name ; Mangle file name ret ; @@ -314,7 +314,7 @@ pc_label: call commit_vk ; Commit any current vkernel mov byte [VKernel],1 ; We've seen a "label" statement mov si,VKernelBuf+vk_vname ; By default, rname == mangled vname mov di,VKernelBuf+vk_rname - pm_call mangle_name + pm_call pm_mangle_name mov si,AppendBuf ; Default append==global append mov di,VKernelBuf+vk_append mov cx,[AppendLen] @@ -409,7 +409,7 @@ commit_vk: mov cx,7 ; "initrd=" rep movsb mov si,InitRD - pm_call unmangle_name + pm_call pm_unmangle_name mov al,' ' stosb |