diff libinterp/corefcn/utils.cc @ 17955:9fc0836cb69b

Fix "get_help_text('\')" in Windows. * src/libinterp/utils.cc (fcn_file_in_path): For absolute path, only returns valid result for files, not for directories.
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 18 Nov 2013 19:12:18 -0500
parents f1b59ef34eda
children aca545afdf25
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc
+++ b/libinterp/corefcn/utils.cc
@@ -468,7 +468,7 @@
         {
           file_stat fs (name);
 
-          if (fs.exists ())
+          if (fs.exists () && ! fs.is_dir ())
             retval = name;
         }
       else if (len > 2 && name[len - 2] == '.' && name[len - 1] == 'm')