From: Jo-Philipp Wich Date: Sat, 21 Sep 2019 12:56:39 +0000 (+0200) Subject: file: increase minimum read buffer size to 4096 bytes X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=95f0973c340853007d7f2875ecc3541dc2459ae0;p=oweals%2Frpcd.git 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 --- 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)