search for: restorepath

Displaying 1 result from an estimated 1 matches for "restorepath".

2009 Jul 27
1
[PATCH] mboot using module path
...10:19:25.000000000 -0700 +++ syslinux-3.82/com32/mboot/mboot.c??? 2009-07-27 12:19:27.000000000 -0700 @@ -38,12 +38,18 @@ ?struct syslinux_pm_regs regs; ?struct my_options opt; +char pxelinuxpath[1024]; + ?struct module_data { ?? void *data; ?? size_t len; ?? const char *cmdline; ?}; +static void restorepath(void) { +?? chdir(pxelinuxpath); +} + ?static int map_modules(struct module_data *modules, int nmodules) ?{ ?? struct mod_list *mod_list; @@ -96,6 +102,7 @@ ?? int module_count = 1; ?? int arglen; ?? const char module_separator[] = "---"; +? char cwd[1024]; ?? for (argp = argv; *argp; ar...