tftp: make message about 512 byte block less confusing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
aa30efcc07
commit
53e2f38b69
@ -582,7 +582,8 @@ static int tftp_protocol(
|
|||||||
* "An option not acknowledged by the server
|
* "An option not acknowledged by the server
|
||||||
* must be ignored by the client and server
|
* must be ignored by the client and server
|
||||||
* as if it were never requested." */
|
* as if it were never requested." */
|
||||||
bb_error_msg("server only supports blocksize of 512");
|
if (blksize != TFTP_BLKSIZE_DEFAULT)
|
||||||
|
bb_error_msg("falling back to blocksize "TFTP_BLKSIZE_DEFAULT_STR);
|
||||||
blksize = TFTP_BLKSIZE_DEFAULT;
|
blksize = TFTP_BLKSIZE_DEFAULT;
|
||||||
io_bufsize = TFTP_BLKSIZE_DEFAULT + 4;
|
io_bufsize = TFTP_BLKSIZE_DEFAULT + 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user