]> git.lyx.org Git - features.git/commitdiff
Fixed a BUG where if in a PATH was something like ;; the scan for the
authorJürgen Vigna <jug@sad.it>
Mon, 11 Oct 1999 08:23:12 +0000 (08:23 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 11 Oct 1999 08:23:12 +0000 (08:23 +0000)
binary was interupted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@182 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/support/filetools.C

index c84244119856903d49247636a7c2f22082a1c706..2c996f88f3b34bb7cc82f4dcfcbfab1f67455b12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-10-08  Jürgen Vigna <jug@sad.it>
+
+       * src/support/filetools.C (FileOpenSearch): Fixed a bug where
+       when in the PATH was something like /usr/bin;;/bin (note: the ;;)
+       it returned without continuing to search the path.
+       
 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
index e19db90d2319e0badf8f3312d20a7d88a4d499dc..cb824cb840880639e600e331e081fde7201f80e4 100644 (file)
@@ -201,7 +201,9 @@ string FileOpenSearch (string const & path, string const & name,
                real_file = FileSearch(path_element, name, ext);
 
                if (real_file.empty()) {
-                 tmppath = split(tmppath, path_element, ';');
+                 do {
+                   tmppath = split(tmppath, path_element, ';');
+                 } while(!tmppath.empty() && path_element.empty());
                } else {
                  notfound = false;
                }