updates, resin support
[org.ibex.jinetd.git] / src / org / ibex / jinetd / Watcher.java
index 980f864..265073c 100644 (file)
@@ -16,7 +16,7 @@ public abstract class Watcher extends File {
     private Vec watched = new Vec();
 
     public void watch(File f) { watched.addElement(new Watched(f.getAbsolutePath())); }
-    public void watch(String s) { watch(getAbsolutePath() + File.separatorChar + s); }
+    public void watch(String s) { watch(new File(getAbsolutePath() + File.separatorChar + s)); }
 
     public void scan() throws IOException {
         for(int i=watched.size()-1; i>=0; i--)