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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60998] fatal: unable to find current directory
Date: Mon, 2 Aug 2021 10:57:44 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.62

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

Oops. Sorry. I wanted to use the function of the top-level namespace.

Could you please try with this change?

diff -r ace96e3bba66 liboctave/system/lo-sysdep.cc
--- a/liboctave/system/lo-sysdep.cc     Sun Aug 01 15:58:12 2021 +0200
+++ b/liboctave/system/lo-sysdep.cc     Mon Aug 02 16:56:15 2021 +0200
@@ -30,6 +30,7 @@
 #include <cstdlib>
 #include <locale>
 #include <codecvt>
+#include <unistd.h>
 
 #include "dir-ops.h"
 #include "file-ops.h"
@@ -90,7 +91,7 @@
       // will allocate a buffer as large as necessary if buf and size are
       // both 0.
 
-      char *tmp = octave_getcwd_wrapper (nullptr, 0);
+      char *tmp = ::getcwd (nullptr, 0);
 
       if (! tmp)
         (*current_liboctave_error_handler) ("unable to find current
directory");


    _______________________________________________________

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]