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

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

[Octave-bug-tracker] [bug #60998] fatal: unable to find current director


From: BaldStrong
Subject: [Octave-bug-tracker] [bug #60998] fatal: unable to find current directory
Date: Mon, 2 Aug 2021 02:56:20 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Edg/91.0.864.59

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


[comment #1 comment #1:]
> Could you attach a 'diff -u' for the change you made to lo-sysdep.cc?  The
vast majority of people never see this problem.  I'd like to try and debug
whether it is something with the Octave code, gnulib, or something odd about
your system.  Which distribution of Linux and version are you using?

diff result:
--- ./liboctave/system/lo-sysdep.cc     2021-08-02 14:38:55.000000000 +0800
+++ ../octave-release-6-3-0/liboctave/system/lo-sysdep.cc       2021-07-12
01:19:32.000000000 +0800
@@ -72,7 +72,7 @@
       // will allocate a buffer as large as necessary if buf and size are
       // both 0.
 
-      char *tmp = get_current_dir_name();
+      char *tmp = octave_getcwd_wrapper (nullptr, 0);
 
       if (! tmp)
         (*current_liboctave_error_handler) ("unable to find current
directory");

OS:Centos7
Kernel:Linux 3.10.0-957.el7.x86_64
CPU:AMD

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60998>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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