aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorStefan Monnier2008-02-06 03:16:10 +0000
committerStefan Monnier2008-02-06 03:16:10 +0000
commitca3199106fe185dd5d42e5086a7e5c4f7ea10659 (patch)
treeefb194ceb0a413d37973cfdebd24ab574c1d0d3c /src/callproc.c
parentf9ffa1eabb499f073b72015041ac2ed1d10f34e7 (diff)
downloademacs-ca3199106fe185dd5d42e5086a7e5c4f7ea10659.tar.gz
emacs-ca3199106fe185dd5d42e5086a7e5c4f7ea10659.zip
* process.c (Fstart_process):
* callproc.c (Fcall_process): Handle the case where Funhandled_file_name_directory returns nil.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c9
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));