Export to GitHub

grub4dos-chenall - issue #125

Cannot run a batch file from menu.lst if path length is more than 32 characters


Posted on Mar 25, 2013 by Happy Kangaroo

What steps will reproduce the problem? 1. In a menu.lst file

/boot_files/grub/autolinuxme.bat
/boot_files/grub/autolinuxmen.bat /boot_files/grub/autolinuxmenu.bat

title test call /boot_files/grub/autolinuxme.bat fred doris call /boot_files/grub/autolinuxmen.bat fred doris call /boot_files/grub/autolinuxmenu.bat fred doris /boot_files/grub/autolinuxme.bat fred doris /boot_files/grub/autolinuxmen.bat fred doris /boot_files/grub/autolinuxmenu.bat fred doris root ()

2. in each .bat file, add !BAT echo %0 pause

What is the expected output? What do you see instead? first 4 lines runs OK next two lines do not >> 'no such command'

Is there a path length limitation of 32 characters?

If use e to edit the menu, the paths are wrong and fred and doris are missing - e.g.

/boot_files/grub/autolinuxme.bat
/boot_files/grub/autolinuxmen.ba /boot_files/grub/autolinuxmenu.b

What version of the product are you using? On what operating system? March 03 045c

Please provide any additional information below.

Comment #1

Posted on Mar 28, 2013 by Happy Hippo

Comment deleted

Comment #2

Posted on Mar 28, 2013 by Happy Hippo

in stage2.c if (!(info & 4) && ((c & 0x80) || pos > 31)) /* bit 2 for argument */

Thanks! try this

Attachments

Comment #3

Posted on Mar 28, 2013 by Happy Kangaroo

This works too! Can this and ;; be combined into one version please? Thanks Steve

Comment #4

Posted on Mar 28, 2013 by Happy Hippo

this is the newest,with both issue 125 and 126's patch

Status: Done

Labels:
Type-Defect Priority-Medium