X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjinetd%2FWatcher.java;h=265073c0da6edc74e11737841d4f2c3e609bbfb5;hb=c28d954263d3a9b5f8ea3ff37368ae811ff48f6c;hp=980f864180a0b2c582015c3e5bfbb6fcbe3708ad;hpb=501b9089d3cf777fc417d9bcddba9bc542a086f9;p=org.ibex.jinetd.git diff --git a/src/org/ibex/jinetd/Watcher.java b/src/org/ibex/jinetd/Watcher.java index 980f864..265073c 100644 --- a/src/org/ibex/jinetd/Watcher.java +++ b/src/org/ibex/jinetd/Watcher.java @@ -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--)