mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
Formerly remote-cstms.c.~5~
This commit is contained in:
parent
1c9e851fe0
commit
b87ff76b7e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue