changeset 12648:98aba238cf62

(Fstart_process): Don't expand the file name before trying openp.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Jul 1995 01:42:05 +0000
parents b94ff6c62c5d
children 43434a01d442
files src/process.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Mon Jul 24 05:21:31 1995 +0000
+++ b/src/process.c	Tue Jul 25 01:42:05 1995 +0000
@@ -1080,8 +1080,6 @@
 #else /* not VMS */
   new_argv = (unsigned char **) alloca ((nargs - 1) * sizeof (char *));
 
-  program = Fexpand_file_name (program, Qnil);
-
   /* If program file name is not absolute, search our path for it */
   if (!IS_DIRECTORY_SEP (XSTRING (program)->data[0])
       && !(XSTRING (program)->size > 1
@@ -1095,6 +1093,7 @@
       UNGCPRO;
       if (NILP (tem))
 	report_file_error ("Searching for program", Fcons (program, Qnil));
+      tem = Fexpand_file_name (tem, Qnil);
       new_argv[0] = XSTRING (tem)->data;
     }
   else