[syslinux] Patch to tftpd rewrite \L handling
Chris Leishman
chris at leishman.org
Mon Jun 27 20:45:50 PDT 2005
Hi all,
I noticed tftpd does not munge the case of expansions (eg. \1, \2, etc)
when in \L..\E or \U..\E blocks. The attached patch fixes this
behaviour.
cheers,
chris
diff -urN tftp-hpa-0.40.orig/tftpd/remap.c tftp-hpa-0.40/tftpd/remap.c
--- tftp-hpa-0.40.orig/tftpd/remap.c 2004-09-23 12:22:02.000000000 +1000
+++ tftp-hpa-0.40/tftpd/remap.c 2005-06-28 13:41:18.079132768 +1000
@@ -91,7 +91,10 @@
len += mlen;
if ( string ) {
memcpy(string, input+pmatch[n].rm_so, mlen);
- string += mlen;
+ while ( mlen-- ) {
+ *string = xform(*string);
+ string++;
+ }
}
}
break;
More information about the Syslinux
mailing list