Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergiy Kibrik <sakib@meta.ua>2015-08-18 09:28:39 +0300
committerJohn Crispin <blogic@openwrt.org>2015-09-15 08:29:59 +0300
commit136a5196266d03d537f822c4e67d2fde2ed59505 (patch)
tree41f7936f6fc8e4b195f0c1e1f1c4c693dde33a01 /json_script.c
parentd66a89f010247f20a9803f2bef1c3dc1d7d706b9 (diff)
ulog: avoid accidental /dev/kmsg creation
Race is possible in ulog_kmsg(): if no /dev/kmsg exists (e.g. while /dev gets re-mounted) regular file created instead. >From this point system goes without kernel logger: special character file can't be created anymore, all clients keep overwriting single message in regular file. To avoid this we open file in "r+" mode which doesn't create file if it's not found. Signed-off-by: Sergiy Kibrik <sakib@meta.ua> Cc: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'json_script.c')
0 files changed, 0 insertions, 0 deletions