From 2a3a65491739154ffca6ee485ae4b81fc88dc628 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Mon, 11 Oct 1999 08:23:12 +0000 Subject: [PATCH] Fixed a BUG where if in a PATH was something like ;; the scan for the binary was interupted. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@182 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 6 ++++++ src/support/filetools.C | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c842441198..2c996f88f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-10-08 Jürgen Vigna + + * 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 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This diff --git a/src/support/filetools.C b/src/support/filetools.C index e19db90d23..cb824cb840 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -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; } -- 2.39.2