diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-21 14:56:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-21 14:58:38 +0200 |
commit | 95f0973c340853007d7f2875ecc3541dc2459ae0 (patch) | |
tree | 2c9b0358841e2a2b0075124f2520dabd61f7bdfb | |
parent | e2a7bc4c2f6d1bb346a60c6f92ffd7b139e1ddb4 (diff) | |
download | rpcd-95f0973c340853007d7f2875ecc3541dc2459ae0.tar.gz |
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 <jo@mein.io>
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ #include <rpcd/plugin.h> /* 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) |