[syslinux:master] lua: In sl_initramfs_add_file(), actually use the real file name
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Thu Mar 13 13:03:04 PDT 2014
Commit-ID: 01394840d20d90eb307649f7dfa9fb347be39339
Gitweb: http://www.syslinux.org/commit/01394840d20d90eb307649f7dfa9fb347be39339
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Thu, 13 Mar 2014 13:01:32 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Thu, 13 Mar 2014 13:01:32 -0700
lua: In sl_initramfs_add_file(), actually use the real file name
Instead of "/testfile1", actually use the real file name...
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
com32/lua/src/syslinux.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/com32/lua/src/syslinux.c b/com32/lua/src/syslinux.c
index ab38166..440ec87 100644
--- a/com32/lua/src/syslinux.c
+++ b/com32/lua/src/syslinux.c
@@ -387,12 +387,12 @@ static int sl_initramfs_load_archive(lua_State * L)
static int sl_initramfs_add_file(lua_State * L)
{
struct initramfs *initramfs = luaL_checkudata(L, 1, SYSLINUX_FILE);
- /* FIXME: This code is doing nothing */
- //const char *filename = luaL_checkstring(L, 2);
+ const char *filename = luaL_checkstring(L, 2);
void *file_data = NULL;
size_t file_len = 0;
- return initramfs_add_file(initramfs, file_data, file_len, file_len, "/testfile1", 0, 0755);
+ return initramfs_add_file(initramfs, file_data, file_len, file_len,
+ filename, 0, 0755);
}
static int sl_boot_it(lua_State * L)
More information about the Syslinux-commits
mailing list