Skip Menu |

This queue is for tickets about the File-ChangeNotify CPAN distribution.

Report information
The Basics
Id: 55883
Status: resolved
Priority: 0/
Queue: File-ChangeNotify

People
Owner: Nobody in particular
Requestors: jon.schutz [...] youramigo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.13



Subject: Issues with circular symbolic link references
Date: Wed, 24 Mar 2010 17:01:34 +1030
To: bug-file-changenotify [...] rt.cpan.org
From: Jon Schutz <jon.schutz [...] youramigo.com>
Hi Dave, Whilst working on File::Tail::Dir which uses File::ChangeNotify as the underlying file watcher, I found that the presence of circular symbolic links causes complete failure - instantiate_watcher() dies (in fact, the problem is in File::Find - in File::Tail::Dir I ended up writing my own recursion to get around File::Find). Both File::ChangeNotify::Watcher::Default and Inotify exhibit the problem. Failing test case is attached. Output is $ perl fcn.t 1..2 ok 1 - use File::ChangeNotify; # instantiate_watcher died with message: # /tmp/FONXPafecs/input-circular2 is encountered a second time at /usr/lib/perl5/5.10.0/File/Find.pm line 543. # # Watcher is a not ok 2 - success if watcher defined without dying # Failed test 'success if watcher defined without dying' # at fcn.t line 33. Regards, -- Jon Schutz CTO YourAmigo Ltd 53 Gilbert St Adelaide SA 5000 Australia

Message body is not shown because sender requested not to inline it.