summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/tftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/tftp.c b/fs/tftp.c
index 7181c58d10..16e57daaef 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -151,7 +151,9 @@ static int tftp_send(struct file_priv *priv)
'\0', /* "timeout" */
TIMEOUT, '\0',
'\0', /* "blksize" */
- TFTP_MTU_SIZE);
+ /* use only a minimal blksize for getattr
+ operations, */
+ priv->is_getattr ? TFTP_BLOCK_SIZE : TFTP_MTU_SIZE);
pkt++;
if (!priv->push)