search for: origfilename

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

Did you mean: orig_filename
2004 Aug 03
1
patch to deal with empty filenames
...pa-0.36-kevin/tftpd/tftpd.c --- tftp-hpa-0.36/tftpd/tftpd.c 2004-07-12 17:42:37.000000000 -0400 +++ tftp-hpa-0.36-kevin/tftpd/tftpd.c 2004-08-03 15:37:18.000000000 -0400 @@ -736,10 +736,19 @@ argn = 0; end = (char *)tp + size; + /* + * Hack to deal with empty filenames. + */ + if (origfilename < end && *origfilename == '\000') { + origfilename = "blank"; + } + + + while ( cp < end ) { + while ( cp < end && *cp ) { - do { cp++; - } while (cp < end && *cp); + } if ( *cp ) { nak(EBADOP, "Re...