https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201883

--- Comment #5 from Marcin Cieślak <[email protected]> ---
You certainly don't want || here because errno maybe set to something before
the whole thing starts.

Your getcwd() fails because of some other reason ("make clean" done in the
other window?)

The problem with this code is that it does not say anything meaningful in
non-ERANGE case.

Can you check what it says in your case?

--- a/eglib/src/gfile-posix.c
+++ b/eglib/src/gfile-posix.c
@@ -175,6 +175,8 @@ g_get_current_dir (void)
                        s <<= 1;
                }
        } while (fail);
+       if (r == NULL)
+           perror("getcwd");

        /* On amd64 sometimes the bottom 32-bits of r == the bottom 32-bits of
buffer
         * but the top 32-bits of r have overflown to 0xffffffff (seriously wtf
getcwd

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mono
To unsubscribe, send any mail to "[email protected]"

Reply via email to