]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly remote-cstms.c.~5~
authorRoland McGrath <roland@redhat.com>
Thu, 11 Jun 1992 04:58:23 +0000 (04:58 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 11 Jun 1992 04:58:23 +0000 (04:58 +0000)
remote-cstms.c

index a8465adbd9ad7c1766a4ea491cc91c78883c6222..317b4e00bff80205dcd4e218256272604bbaa0b1 100644 (file)
@@ -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;
     }