Mercurial > emacs
changeset 98083:78f10c77413c
(Fcall_process): Canonicalize current directory name.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 07 Sep 2008 19:10:28 +0000 |
parents | b254f224b1f4 |
children | cdd80926d2ea |
files | src/callproc.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callproc.c Sun Sep 07 19:10:18 2008 +0000 +++ b/src/callproc.c Sun Sep 07 19:10:28 2008 +0000 @@ -236,9 +236,6 @@ char *outf, *tempfile; int outfilefd; #endif -#if 0 - int mask; -#endif struct coding_system process_coding; /* coding-system of process output */ struct coding_system argument_coding; /* coding-system of arguments */ /* Set to the return value of Ffind_operation_coding_system. */ @@ -374,6 +371,8 @@ a sensible default. */ current_dir = build_string ("~/"); current_dir = expand_and_dir_to_file (current_dir, Qnil); + current_dir = Ffile_name_as_directory (current_dir); + if (NILP (Ffile_accessible_directory_p (current_dir))) report_file_error ("Setting current directory", Fcons (current_buffer->directory, Qnil)); @@ -474,10 +473,6 @@ report_file_error ("Creating process pipe", Qnil); } #endif -#if 0 - /* Replaced by close_process_descs */ - set_exclusive_use (fd[0]); -#endif } {