On 12/14/14 14:07, Uros Bizjak wrote:
Hello Bruce!
I have posted a small fixincludes patch [1] that fixes a warning
during the fixincludes build,
Please apply. However, I'm sure it is not "the last remaining warning"
since new warnings get invented. :)
Thank you - Bruce
2014-12-09 Uros Bizjak <ubiz...@gmail.com>
* server.c (server_setup): Check return value of
getcwd and in case of error set buff[0] to 0.
Bootstrapped on x86_64-linux-gnu.
OK for mainline?
Index: server.c
===================================================================
--- server.c (revision 218525)
+++ server.c (working copy)
@@ -192,7 +192,8 @@ server_setup (void)
fputs ("trap : 1\n", server_pair.pf_write);
fflush (server_pair.pf_write);
- getcwd (buff, MAXPATHLEN + 1);
+ if (getcwd (buff, MAXPATHLEN + 1) == NULL)
+ buff[0] = 0;
p_cur_dir = xstrdup (buff);
}