[syslinux] CMENU file handling problems.

H. Peter Anvin hpa at zytor.com
Mon Dec 6 16:03:02 PST 2010


On 12/06/2010 03:15 PM, arcarlini at iee.org wrote:
> 
> I have to dash now, but can it be as simple as this:
> 
> com32/lib/sys/open.c
> 
> roundabout line 65:
> 
>     handle = __com32.cs_pm->open_file(pathname, &fp->i.fd);
>     if (handle < 0) {
> 	close(fd);   // brackets plus this line?
> 	return -1;
>     }
> 
> So the open-file call fails and an error is returned but the fd never
> got closed?
> 

It seems to be *almost* that simple.  I just pushed a patch into the git
tree and released syslinux-4.04-pre2, if you could test it that would be
great.

	-hpa




More information about the Syslinux mailing list