octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45914] fopen warns "found by searching load p


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45914] fopen warns "found by searching load path" although the file doesn't exist
Date: Fri, 11 Sep 2015 14:24:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0

Follow-up Comment #2, bug #45914 (project octave):

I think the problem is that info about directories in teh load path is cached
and the cache is updated when Octave issues a prompt and also when a few other
events happen, like adding a new directory to the path.  The case of removing
a file from a directory in the path hasn't been handled.

But even if we fix unlink to refresh the cached load path info when removing a
file from a directory that is in the load path, we could still have problems
with other things like


  system ("rm -f /tmp/x")


and there's really no way to know.

So maybe a better approach would just be to first look in the cache for files
(for speed) and then verify that the file found from the cache actually does
exist before returning success?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45914>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]