sysctl: disable buffer while writing to /proc
authorTiago Salem Herrmann <therrmann@suse.com>
Tue, 12 Dec 2017 15:52:45 +0000 (13:52 -0200)
committerTiago Salem Herrmann <therrmann@suse.com>
Wed, 13 Dec 2017 17:03:41 +0000 (15:03 -0200)
commit12ec9c309967d663e93254e3fca835f9a240e26f
tree81f8d3f5218b972abbea39789ab4a23e7ca825f4
parenta668bfe88a48d433a81dad8219bd98fc73838eda
sysctl: disable buffer while writing to /proc

fputs() writes only first 2048 bytes and fails
to write to /proc when values are larger than that.
This patch adds a new flag to WriteStringFileFlags
that make it possible to disable the buffer under
specific cases.
src/basic/fileio.c
src/basic/fileio.h
src/shared/sysctl-util.c