diff liboctave/system/file-ops.cc @ 21741:71d8a9a0642c

Fix scope of umask to avoid recursive call. (bug #47961) * file-ops.cc (umask): Call ::umask (since there is no gnulib::umask), not umask.
author Lachlan Andrew <lachlanbis@gmail.com>
date Thu, 19 May 2016 23:54:09 +1000
parents 0504351a45e6
children 25493c55d976
line wrap: on
line diff
--- a/liboctave/system/file-ops.cc	Thu May 19 22:08:42 2016 +1000
+++ b/liboctave/system/file-ops.cc	Thu May 19 23:54:09 2016 +1000
@@ -641,7 +641,7 @@
     umask (mode_t mode)
     {
 #if defined (HAVE_UMASK)
-      return umask (mode);
+      return ::umask (mode);
 #else
       return 0;
 #endif