mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
11d60307cf
When inotify isn't available, watch.c uses readdir() to look for new .torrent files. It keeps a list of old .torrent files internally so that it doesn't try to keep re-adding the same file. This list is stored in an evbuffer. As part of the libevent2 upgrade (#3836), r11594 changed how the buffer is searched by replacing the (deprecated) event_find() call with libevent2's evbuffer_search(). However the latter's semantics are different in that searching stops when '\0' is reached, so '\0' is no longer a good filename delimiter. Fixed by changing watch.c's internal delimiter from '\0' to '\t' ... so all those torrents with tabs in their filenames had better watch out. |
||
---|---|---|
.. | ||
daemon.c | ||
Makefile.am | ||
my-valgrind.sh | ||
remote.c | ||
transmission-daemon.1 | ||
transmission-remote.1 | ||
watch.c | ||
watch.h |