aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-09-07 19:10:28 +0000
committerChong Yidong2008-09-07 19:10:28 +0000
commitdb8454b07a061175d6b9a3a7d172a8ae8fdadca0 (patch)
tree3750b209a820418098299a5fcfcfebab9a47fcfa /src
parent39fc455ff00b9ae93dc9d42d5c11fd4cf1159477 (diff)
downloademacs-db8454b07a061175d6b9a3a7d172a8ae8fdadca0.tar.gz
emacs-db8454b07a061175d6b9a3a7d172a8ae8fdadca0.zip
(Fcall_process): Canonicalize current directory name.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 1aad176978e..fdfa4c78083 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -236,9 +236,6 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
236 char *outf, *tempfile; 236 char *outf, *tempfile;
237 int outfilefd; 237 int outfilefd;
238#endif 238#endif
239#if 0
240 int mask;
241#endif
242 struct coding_system process_coding; /* coding-system of process output */ 239 struct coding_system process_coding; /* coding-system of process output */
243 struct coding_system argument_coding; /* coding-system of arguments */ 240 struct coding_system argument_coding; /* coding-system of arguments */
244 /* Set to the return value of Ffind_operation_coding_system. */ 241 /* Set to the return value of Ffind_operation_coding_system. */
@@ -374,6 +371,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
374 a sensible default. */ 371 a sensible default. */
375 current_dir = build_string ("~/"); 372 current_dir = build_string ("~/");
376 current_dir = expand_and_dir_to_file (current_dir, Qnil); 373 current_dir = expand_and_dir_to_file (current_dir, Qnil);
374 current_dir = Ffile_name_as_directory (current_dir);
375
377 if (NILP (Ffile_accessible_directory_p (current_dir))) 376 if (NILP (Ffile_accessible_directory_p (current_dir)))
378 report_file_error ("Setting current directory", 377 report_file_error ("Setting current directory",
379 Fcons (current_buffer->directory, Qnil)); 378 Fcons (current_buffer->directory, Qnil));
@@ -474,10 +473,6 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
474 report_file_error ("Creating process pipe", Qnil); 473 report_file_error ("Creating process pipe", Qnil);
475 } 474 }
476#endif 475#endif
477#if 0
478 /* Replaced by close_process_descs */
479 set_exclusive_use (fd[0]);
480#endif
481 } 476 }
482 477
483 { 478 {