aboutgitcodebugslistschat
path: root/contrib
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-03-28 11:39:58 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-03-28 13:24:44 +0100
commit42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d (patch)
tree2d721c7b64f2267a07c522410ba3891dfe445692 /contrib
parent65cca54be84ffc5d2e18fcb8229dcc9d1f229479 (diff)
downloadpasst-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar.gz
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar.bz2
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar.lz
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar.xz
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.tar.zst
passt-42a854a52b6fa2bbd70cbc0c7657c8a49a9c3d2d.zip
pasta, passt-repair: Support multiple events per read() in inotify handlers
The current code assumes that we'll get one event per read() on inotify descriptors, but that's not the case, not from documentation, and not from reports. Add loops in the two inotify handlers we have, in pasta-specific code and passt-repair, to go through all the events we receive. Link: https://bugs.passt.top/show_bug.cgi?id=119 [dwg: Remove unnecessary buffer expansion, use strnlen instead of strlen to make Coverity happier] Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Add additional check on ev->name and ev->len in passt-repair] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions