From: Roland McGrath Date: Thu, 11 Jun 1992 04:58:23 +0000 (+0000) Subject: Formerly remote-cstms.c.~5~ X-Git-Tag: 3.70.2~746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b87ff76b7ea573fb8d6792b74370c84dfbf3462d;p=platform%2Fupstream%2Fmake.git Formerly remote-cstms.c.~5~ --- 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; }