summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-eglib_src_gfile-posix.c
blob: e1f5878c44110bbe2d638ea59c2daf89950f0d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- eglib/src/gfile-posix.c.orig	2017-07-20 18:10:59 UTC
+++ eglib/src/gfile-posix.c
@@ -170,7 +170,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;
 		}