projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a7bc4
)
file: increase minimum read buffer size to 4096 bytes
author
Jo-Philipp Wich
<jo@mein.io>
Sat, 21 Sep 2019 12:56:39 +0000
(14:56 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Sat, 21 Sep 2019 12:58:38 +0000
(14:58 +0200)
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>
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index b78c54f5131f8446ad32e8c69b9f10a66d05b6c7..b1adcb7c431bc55a770dea3508bd4fcbacae5adc 100644
(file)
--- 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)