summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-21 14:56:39 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-21 14:58:38 +0200
commit95f0973c340853007d7f2875ecc3541dc2459ae0 (patch)
tree2c9b0358841e2a2b0075124f2520dabd61f7bdfb
parente2a7bc4c2f6d1bb346a60c6f92ffd7b139e1ddb4 (diff)
downloadrpcd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index b78c54f..b1adcb7 100644
--- a/file.c
+++ b/file.c
@@ -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)