cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=add9540b1cc2deb3b3015f89b804e0266bba8a29
commit add9540b1cc2deb3b3015f89b804e0266bba8a29 Author: Cedric BAIL <[email protected]> Date: Wed Mar 5 12:14:40 2014 +0900 edje: fix edje_watch to not pass the '\n' to eio_monitor. Eina_File line iterator does give the length of the line including the '\n'. We did previously ignore that and passed the '\n' down to eio_monitor. Obviously it would fail to monitor a PATH that finished with a '\n' and edje_watch did stop working. I guess nobody did any real testing with edje watch in the past year. @fix --- src/bin/edje/edje_watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/edje/edje_watch.c b/src/bin/edje/edje_watch.c index b4e7455..3ade5f3 100644 --- a/src/bin/edje/edje_watch.c +++ b/src/bin/edje/edje_watch.c @@ -53,7 +53,7 @@ read_watch_file(const char *file) } else { - path = eina_stringshare_add_length(ln->start, ln->length); + path = eina_stringshare_add_length(ln->start, ln->length - 1); } if (do_append) r = eina_list_append(r, eio_monitor_add(path)); --
