Changeset View
Changeset View
Standalone View
Standalone View
lang/mono/files/patch-eglib_src_gfile-posix.c
--- eglib/src/gfile-posix.c.orig 2016-07-29 09:10:29 UTC | --- eglib/src/gfile-posix.c.orig 2017-07-20 18:10:59 UTC | ||||
+++ eglib/src/gfile-posix.c | +++ eglib/src/gfile-posix.c | ||||
@@ -170,7 +170,7 @@ g_get_current_dir (void) | @@ -170,7 +170,7 @@ g_get_current_dir (void) | ||||
do { | do { | ||||
buffer = g_realloc (buffer, s); | buffer = g_realloc (buffer, s); | ||||
r = getcwd (buffer, s); | r = getcwd (buffer, s); | ||||
- fail = (r == NULL && errno == ERANGE); | - fail = (r == NULL && errno == ERANGE); | ||||
+ fail = (r == NULL && (errno == ERANGE || errno == 0)); | + fail = (r == NULL && (errno == ERANGE || errno == 0)); | ||||
if (fail) { | if (fail) { | ||||
s <<= 1; | s <<= 1; | ||||
} | } |