aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-21Resolves Issue #72 (#113)HEADmasterT.C. Ferguson2-0/+68
Makes unique id (cookie) available using "%c" as a formatting option. Original code by hamoid Add test for cookie (%c) format option
2020-06-20User $(id -u) over $USEREric Curtin1-1/+1
USER environment variable isn't always populated, credit tcf909
2020-05-07Create FUNDING.ymlEric Curtin1-0/+1
2020-03-23Add integration test to test if chown is tracked successfullyEric Curtin1-0/+38
2020-03-23Only call git clean -fdx if specifiedEric Curtin1-3/+9
Avoid accidental deletion of files
2020-03-07Update issue templatesEric Curtin2-0/+58
2020-03-07Create CODE_OF_CONDUCT.mdEric Curtin1-0/+76
2020-03-07Added -P/--no-dereference to watch a symlink (#46)Carl D Hamann6-19/+89
Allows watching symlinks by ORing IN_DONT_FOLLOW into the set of events This should silently no-op on kernels prior to 2.6.15. Including integration tests and print_help.
2020-03-05Use localtime_r over localtimeEric Curtin1-10/+9
LGTM regards this unsafe as it isn't threadsafe, tools like tsan would show this too. Now that shouldn't matter to us, but if it's available on all platforms, it might future-proof us.
2020-03-04Fix some issues pointed out by lgtmEric Curtin7-27/+27
2020-03-04cirrus-ci: disable the FreeBSD 13 buildsEric Curtin1-2/+1
FreeBSD 13.0 is apparently close to a year away from a stable release and the cirrus builds are not stable enough on this platform.
2020-03-04Add status for FreeBSDEric Curtin1-1/+2
2020-03-04Stop running unit tests on FreeBSDEric Curtin2-15/+20
Until someone fixes them, keep build green
2020-02-25Makefile.am: add build rule for README (#111)Pierre-jean Texier2-1/+2
Fixes: | configure.ac:17: installing 'config/config.sub' | configure.ac:16: installing 'config/install-sh' | configure.ac:16: installing 'config/missing' | Makefile.am: error: required file './README' not found | libinotifytools/src/Makefile.am: installing 'config/depcomp' Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-02-01Add arm64 buildEric Curtin2-1/+13
2020-02-01inotify-tools 3.20.2.23.20.2.2Eric Curtin1-1/+1
2020-02-01int to longEric Curtin1-1/+1
Just make sure this value is at least the size of a void*
2020-01-31inotify-tools 3.20.2.13.20.2.1Eric Curtin1-1/+1
2020-01-31Potential buffer overflow where length is larger than 4095Eric Curtin2-6/+11
2020-01-30inotify-tools 3.20.23.20.2Eric Curtin1-1/+1
2020-01-29Update maintainers and original authorEric Curtin2-2/+3
2020-01-29Update AUTHORS fileEric Curtin1-1/+19
2020-01-29Use stat and lstat if stat64 is not available in common.c alsoEric Curtin3-1/+11
2020-01-29Use standard flexible array member C code introduced in C99Eric Curtin1-1/+1
[] rather than __flexarr
2020-01-29Use stat and lstat if stat64 is not availableEric Curtin1-0/+5
2020-01-29Add FreeBSD buildEric Curtin1-0/+15
2020-01-29Support for gcc 9Eric Curtin2-4/+10
2020-01-28De-duplicate build_and_test scriptEric Curtin2-24/+45
2020-01-28Add Wall and WerrorEric Curtin4-6/+4
2020-01-28Add build status to READMEEric Curtin4-2/+5
2020-01-28Run integration testsEric Curtin3-15/+25
2020-01-28Run tests on buildEric Curtin1-0/+8
2020-01-28URL updatesEric Curtin2-2/+2
2020-01-27inotify-tools: fix __NR_inotify_add_watch system call number on ↵Jackie Huang1-2/+2
_MIPS_SIM_ABI64 (#71) The correct value should be the same as defined in linux/arch/mips/include/uapi/asm/unistd.h Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-01-27Build on 16.04 and 18.04Eric Curtin1-2/+13
2020-01-27Build on gcc and clang in CIEric Curtin1-7/+6
2020-01-27Fix error when compiling with clangEric Curtin1-1/+1
clang: error: argument unused during compilation: '-L../libinotifytools/src' [-Werror,-Wunused-command-line-argument]
2020-01-27Fix some compiler warningsEric Curtin1-3/+4
One left to fix, this is just a simple cast
2020-01-27Add some more files to .gitinoreEric Curtin1-0/+10
Many autogenerated files
2020-01-27No need to pass void* anymoreEric Curtin1-4/+2
Because we use a strict struct type now.
2020-01-27Use ISO 8061Eric Curtin1-1/+1
But exclude hours, minutes, seconds, etc. For reproducible builds.
2020-01-27Use ChangeLog date instead of build date (#97)Bernhard M. Wiedemann1-1/+1
* Use ChangeLog date instead of build date in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good. Also use ISO-8601 date format to be readable worldwide. This date call works with GNU date and FreeBSD date. * Keep date format as is '%B %d, %Y' Co-authored-by: Eric Curtin <ericcurtin17@gmail.com>
2020-01-27Fix stack overflow in: `inotifytools_replace_filename` (#104)Jan Kratochvil1-11/+17
``` /var/cache/dnf/fedora-modular-42f5060c2cfa4ffa/ MOVED_TO,ISDIR repodata *** stack smashing detected ***: <unknown> terminated % #0 0x0000ffffa6d08c90 in raise () from /usr/lib64/libc.so.6 % #1 0x0000ffffa6cf6aa8 in abort () from /usr/lib64/libc.so.6 % #2 0x0000ffffa6d42acc in __libc_message () from /usr/lib64/libc.so.6 % #3 0x0000ffffa6db4f54 in __fortify_fail_abort () from /usr/lib64/libc.so.6 % #4 0x0000ffffa6db4f08 in __stack_chk_fail () from /usr/lib64/libc.so.6 % #5 0x0000ffffa6e4f958 in inotifytools_replace_filename (oldname=<optimized out>, newname=<optimized out>) at inotifytools.c:866 % #6 0x0000aaaab1b5de98 in main (argc=<optimized out>, argv=<optimized out>) at inotifywait.c:389 ``` A simple fix would be: ``` char *names[2+(sizeof(int)+sizeof(char*)-1)/sizeof(char*)]; ``` A similar fix is in: ``` inotify-tools_3.14-8.debian/debian/patches/0006-Fix-buffer-overrun-in-inotifytools.c.patch ``` I find the attached struct for callback data as a more clean and standard solution.
2020-01-27Fix typo in man page of inotifywait. (#96)itpflop1-1/+1
2020-01-27remove redundant assignment (detected by clang) (#93)Ilya Shipitsin1-3/+0
2020-01-27Corrected install instruction, (#99)angerangel1-0/+20
added all pre-requisites
2020-01-27correct spelling mistake (#75)Edward Betts1-1/+1
2020-01-26Update READMEEric Curtin1-1/+2
2020-01-26Create ccpp.ymlEric Curtin1-0/+17
2020-01-26fix example two (#100)Carl Bordum Hansen1-1/+1
the loop body never really executes because the exit code is 0 on the event