fix a bug in tftp.
This commit is contained in:
parent
3c5b1b14d9
commit
f6e3c77ef1
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-05-23 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
|
* netboot/fsys_tftp.c (tftp_dir): Append "0\0" to the request
|
||||||
|
string, because the "tsize" option must be followed by zero,
|
||||||
|
according to RFC 2349.
|
||||||
|
|
||||||
2000-05-22 OKUJI Yoshinori <okuji@gnu.org>
|
2000-05-22 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
Synchronize the documentation with the code.
|
Synchronize the documentation with the code.
|
||||||
|
|
|
@ -401,8 +401,8 @@ tftp_dir (char *dirname)
|
||||||
ch = nul_terminate (dirname);
|
ch = nul_terminate (dirname);
|
||||||
/* Make the request string (octet, blksize and tsize). */
|
/* Make the request string (octet, blksize and tsize). */
|
||||||
len = (grub_sprintf ((char *) tp.u.rrq,
|
len = (grub_sprintf ((char *) tp.u.rrq,
|
||||||
"%s%coctet%cblksize%c%d%ctsize%c0",
|
"%s%coctet%cblksize%c%d%ctsize%c0%c0",
|
||||||
dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0)
|
dirname, 0, 0, 0, TFTP_MAX_PACKET, 0, 0, 0)
|
||||||
+ TFTP_MIN_PACKET + 1);
|
+ TFTP_MIN_PACKET + 1);
|
||||||
/* Restore the original DIRNAME. */
|
/* Restore the original DIRNAME. */
|
||||||
dirname[grub_strlen (dirname)] = ch;
|
dirname[grub_strlen (dirname)] = ch;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue