changeset 21095:d6fa72047aeb

Update documentation of "exist" to warn of buggy .oct files (bug #36067). * variables.cc (Fexist): Add warning to docstring about calling function with a buggy .oct file.
author Lachlan Andrew <lachlanbis@gmail.com>
date Sat, 16 Jan 2016 12:58:18 +1100
parents 622e34f6ede3
children a1529d24beff
files libinterp/corefcn/variables.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/variables.cc	Sun Jan 17 07:37:49 2016 -0800
+++ b/libinterp/corefcn/variables.cc	Sat Jan 16 12:58:18 2016 +1100
@@ -573,6 +573,10 @@
 not on the search path you should use some combination of the functions\n\
 @code{file_in_path} and @code{stat} instead.\n\
 \n\
+Programming Note: If @var{name} is implemented by a buggy .oct/.mex file,\n\
+calling @var{exist} may cause Octave to crash.  To maintain high\n\
+performance, Octave trusts .oct/.mex files instead of sandboxing them.\n\
+\n\
 @seealso{file_in_loadpath, file_in_path, dir_in_loadpath, stat}\n\
 @end deftypefn")
 {