summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mono_eglib_gfile-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/files/patch-mono_eglib_gfile-posix.c')
-rw-r--r--lang/mono/files/patch-mono_eglib_gfile-posix.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/mono/files/patch-mono_eglib_gfile-posix.c b/lang/mono/files/patch-mono_eglib_gfile-posix.c
new file mode 100644
index 000000000000..51b4c84fa1f4
--- /dev/null
+++ b/lang/mono/files/patch-mono_eglib_gfile-posix.c
@@ -0,0 +1,11 @@
+--- mono/eglib/gfile-posix.c.orig 2018-01-10 08:03:25 UTC
++++ mono/eglib/gfile-posix.c
+@@ -161,7 +161,7 @@ g_get_current_dir (void)
+ do {
+ buffer = g_realloc (buffer, s);
+ r = getcwd (buffer, s);
+- fail = (r == NULL && errno == ERANGE);
++ fail = (r == NULL && (errno == ERANGE || errno == 0));
+ if (fail) {
+ s <<= 1;
+ }