[syslinux] patch to deal with empty filenames

H. Peter Anvin hpa at zytor.com
Tue Aug 3 18:07:33 PDT 2004


Kevin D. Clark wrote:
> Hi,
> 
> I have a tftp client that sends out a tftp file request with an empty
> (but null terminated) filename.  IMHO this is a bug, but I still need
> to be able to use TFTP with this client.  Modifying the client is out
> of the question at this point.
> 
> To deal with this situation I modified tftp-hpa in what I hope is an
> unobtrusive manner -- I basically modified the code to map ""
> filenames into the string "blank".  I believe that this will allow
> users to use tftp-hpa's filename remapping capability as well (but I
> haven't tried this).
> 
> This modification causes one warning associated with "const" to be
> emitted.  I am all for making code "const-correct" and am even willing
> to do this work if the maintainers of tftp-hpa want me to do this.
> Before I embark on this task, can I get a feel for what people think
> of this patch?
> 

Unnecessary.  Use the regular expression remapping feature.

	-hpa




More information about the Syslinux mailing list