diff options
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/callproc.c b/src/callproc.c index a3b7b7afa4a..fdd1ee7988c 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -376,9 +376,12 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 376 | 376 | ||
| 377 | GCPRO4 (infile, buffer, current_dir, error_file); | 377 | GCPRO4 (infile, buffer, current_dir, error_file); |
| 378 | 378 | ||
| 379 | current_dir | 379 | current_dir = Funhandled_file_name_directory (current_dir); |
| 380 | = expand_and_dir_to_file (Funhandled_file_name_directory (current_dir), | 380 | if (NILP (current_dir)) |
| 381 | Qnil); | 381 | /* If the file name handler says that current_dir is unreachable, use |
| 382 | a sensible default. */ | ||
| 383 | current_dir = build_string ("~/"); | ||
| 384 | current_dir = expand_and_dir_to_file (current_dir, Qnil); | ||
| 382 | if (NILP (Ffile_accessible_directory_p (current_dir))) | 385 | if (NILP (Ffile_accessible_directory_p (current_dir))) |
| 383 | report_file_error ("Setting current directory", | 386 | report_file_error ("Setting current directory", |
| 384 | Fcons (current_buffer->directory, Qnil)); | 387 | Fcons (current_buffer->directory, Qnil)); |