From 95f0973c340853007d7f2875ecc3541dc2459ae0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 21 Sep 2019 14:56:39 +0200 Subject: file: increase minimum read buffer size to 4096 bytes Some sysfs or proc files contain more than 128 byte of data, e.g. the /proc/filesystems or /proc/mounts files. Signed-off-by: Jo-Philipp Wich --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index b78c54f..b1adcb7 100644 --- a/file.c +++ b/file.c @@ -38,7 +38,7 @@ #include /* limit of sys & proc files */ -#define RPC_FILE_MIN_SIZE (128) +#define RPC_FILE_MIN_SIZE (4096) /* limit of regular files and command output data */ #define RPC_FILE_MAX_SIZE (4096 * 64) -- cgit v1.2.1