# HG changeset patch # User Richard M. Stallman # Date 830548357 0 # Node ID 46157341f72166ab55b35e12d50a24751b97d503 # Parent f3024d6375624b9eb51f3915c0c09d129197cfe1 (Fcall_process) [WINDOWSNT]: Remove conditional NT code. (Fcall_process_region) [DOSNT]: Canonicalize slashes in filename. (child_setup) [WINDOWSNT]: Decrease handles array by one. diff -r f3024d637562 -r 46157341f721 src/callproc.c --- a/src/callproc.c Fri Apr 26 19:46:05 1996 +0000 +++ b/src/callproc.c Fri Apr 26 19:52:37 1996 +0000 @@ -352,11 +352,7 @@ else { #ifndef MSDOS -#ifdef WINDOWSNT - pipe_with_inherited_out (fd); -#else /* not WINDOWSNT */ pipe (fd); -#endif /* not WINDOWSNT */ #endif #if 0 /* Replaced by close_process_descs */ @@ -631,7 +627,6 @@ tempfile = alloca (20); *tempfile = '\0'; } - dostounix_filename (tempfile); if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1])) strcat (tempfile, "/"); #ifdef WINDOWSNT @@ -639,6 +634,10 @@ #else strcat (tempfile, "detmp.XXX"); #endif + if ('/' == DIRECTORY_SEP) + dostounix_filename (tempfile); + else + unixtodos_filename (tempfile); #else /* not DOS_NT */ #ifdef VMS @@ -708,7 +707,7 @@ char *pwd_var; #ifdef WINDOWSNT int cpid; - HANDLE handles[4]; + HANDLE handles[3]; #endif /* WINDOWSNT */ int pid = getpid ();