summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-11 04:58:23 +0000
committerRoland McGrath <roland@redhat.com>1992-06-11 04:58:23 +0000
commitb87ff76b7ea573fb8d6792b74370c84dfbf3462d (patch)
treebcbf310438df05b9ea541323b8774e1244a3a3bb
parent1c9e851fe0aef3a893b1177eac2fae4a51bd9d6e (diff)
downloadgunmake-b87ff76b7ea573fb8d6792b74370c84dfbf3462d.tar.gz
Formerly remote-cstms.c.~5~
-rw-r--r--remote-cstms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/remote-cstms.c b/remote-cstms.c
index a8465ad..317b4e0 100644
--- a/remote-cstms.c
+++ b/remote-cstms.c
@@ -70,9 +70,13 @@ start_remote_job (argv, envp, stdin_fd, is_remote, id_ptr, used_stdin)
int pid;
/* Find the current directory. */
- if (getwd (cwd) == 0)
+ if (getcwd (cwd, GET_PATH_MAX) == 0)
{
+#ifndef GETCWD_MISSING
+ perror_with_name ("exporting: getcwd: ", "");
+#else
error ("exporting: getwd: %s", cwd);
+#endif
return 1;
}