[LTP] [PATCH] inotify: clean up build and make check findings
Jinseok Kim
always.starving0@gmail.com
Fri Mar 6 08:20:06 CET 2026
Hi!
Thanks for the review.
For the -Wformat-truncation warning in inotify02.c, how about fixing it
by adjusting the snprintf() call?
For example:
snprintf(fname3, BUF_SIZE, "%s.rename2", fname1);
snprintf(fname3, BUF_SIZE, "%.*s.rename2", (int)(BUF_SIZE -
sizeof(".rename2")), fname1);
Also, regarding the make check warning about ENOSYS: if I revert the code,
the warning will remain. Should this just be left as-is, or is there
another way to handle it?
inotify.h:36: WARNING: ENOSYS means 'invalid syscall nr' and nothing else
Thanks,
Jinseok.
More information about the ltp
mailing list