changeset 29637:f4a57a41f1e7

maint: merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 08 May 2021 17:45:19 +0200
parents 955832ec3af1 (current diff) 9c76a6aefb42 (diff)
children 75556567592e
files libinterp/octave-value/ov-usr-fcn.cc
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-usr-fcn.cc	Sat May 01 15:17:28 2021 +0200
+++ b/libinterp/octave-value/ov-usr-fcn.cc	Sat May 08 17:45:19 2021 +0200
@@ -30,6 +30,7 @@
 #include <sstream>
 
 #include "file-info.h"
+#include "file-ops.h"
 #include "file-stat.h"
 #include "str-vec.h"
 
@@ -359,7 +360,9 @@
 
       std::string ff_name = octave::fcn_file_in_path (file_name);
 
-      std::string fcn_file_dir = octave::config::fcn_file_dir ();
+      static const std::string fcn_file_dir
+        = octave::sys::canonicalize_file_name
+            (octave::config::fcn_file_dir ());
       if (fcn_file_dir == ff_name.substr (0, fcn_file_dir.length ()))
         m_system_fcn_file = true;
     }