projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa30efc
)
tftp: make message about 512 byte block less confusing
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Jun 2010 01:29:58 +0000
(
03:29
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Jun 2010 01:29:58 +0000
(
03:29
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index ab4e25967987327e836f3d78bb88cc0b01c98f37..f895d19f993e4199e7793a6766af7fe3c817179a 100644
(file)
--- a/
networking/tftp.c
+++ b/
networking/tftp.c
@@
-582,7
+582,8
@@
static int tftp_protocol(
* "An option not acknowledged by the server
* must be ignored by the client and server
* 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;
io_bufsize = TFTP_BLKSIZE_DEFAULT + 4;
}