From 80959e30ce7c57b5865f5358c42a7bcffe450d4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 20 May 2024 17:22:36 +0200 Subject: Merging upstream version 2.9.5. Signed-off-by: Daniel Baumann --- src/util/inotify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/util/inotify.c') diff --git a/src/util/inotify.c b/src/util/inotify.c index a3c33ed..8192cfd 100644 --- a/src/util/inotify.c +++ b/src/util/inotify.c @@ -233,9 +233,13 @@ static errno_t process_dir_event(struct snotify_ctx *snctx, { errno_t ret; + if (in_event->len == 0) { + DEBUG(SSSDBG_TRACE_FUNC, "Not interested in nameless event\n"); + return EOK; + } + DEBUG(SSSDBG_TRACE_ALL, "inotify name: %s\n", in_event->name); - if (in_event->len == 0 \ - || strcmp(in_event->name, snctx->base_name) != 0) { + if (strcmp(in_event->name, snctx->base_name) != 0) { DEBUG(SSSDBG_TRACE_FUNC, "Not interested in %s\n", in_event->name); return EOK; } -- cgit v1.2.3