Skip to content

Commit

Permalink
Path pattern starts with //: no recursive search (fixes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Jul 27, 2018
1 parent e57c694 commit b64974c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libraries/MiKTeX/Core/Session/searchpath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void SessionImpl::ExpandPathPattern(const PathName& rootDirectory, const PathNam
{
MIKTEX_ASSERT(!pathPattern.Empty());
const char* lpszRecursionIndicator = strstr(pathPattern.GetData(), RECURSION_INDICATOR);
if (lpszRecursionIndicator == nullptr)
if (lpszRecursionIndicator == nullptr || rootDirectory.Empty() && lpszRecursionIndicator == pathPattern.GetData())
{
// no recursion; check to see whether the path pattern specifies an
// existing sub directory
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MiKTeX/Core/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
## Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
## USA.

set(MIKTEX_COMP_J2000_VERSION 6778)
set(MIKTEX_COMP_J2000_VERSION 6782)
set(MIKTEX_COMP_INTERFACE_VERSION 7)

0 comments on commit b64974c

Please sign in to comment.