diff src/callproc.c @ 8737:72b312ebaa10

(delete_temp_file): Use Fdelete_file.
author Richard M. Stallman <rms@gnu.org>
date Wed, 14 Sep 1994 09:15:46 +0000
parents f1b1537ed3f6
children f44e40e722b2
line wrap: on
line diff
--- a/src/callproc.c	Wed Sep 14 09:05:48 1994 +0000
+++ b/src/callproc.c	Wed Sep 14 09:15:46 1994 +0000
@@ -467,7 +467,9 @@
 delete_temp_file (name)
      Lisp_Object name;
 {
-  unlink (XSTRING (name)->data);
+  /* Use Fdelete_file because that runs a file name handler.
+     We did that when writing the file, so we should do so when deleting.  */
+  Fdelete_file (name);
 }
 
 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region,