emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r110996: Fix one part of bug #1307


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r110996: Fix one part of bug #13079 with temporary files in call-process-region.
Date: Wed, 05 Dec 2012 19:10:00 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110996
fixes bug: http://debbugs.gnu.org/13079
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-24
timestamp: Wed 2012-12-05 19:10:00 +0200
message:
  Fix one part of bug #13079 with temporary files in call-process-region.
  
   src/callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
   fails, signal an error instead of continuing with an empty
   string.
modified:
  src/ChangeLog
  src/callproc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-12-04 18:48:01 +0000
+++ b/src/ChangeLog     2012-12-05 17:10:00 +0000
@@ -1,3 +1,9 @@
+2012-12-05  Eli Zaretskii  <address@hidden>
+
+       * callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
+       fails, signal an error instead of continuing with an empty
+       string.  (Bug#13079)
+
 2012-12-04  Eli Zaretskii  <address@hidden>
 
        * fileio.c (file_name_as_directory, directory_file_name) [DOS_NT]:

=== modified file 'src/callproc.c'
--- a/src/callproc.c    2012-10-31 17:27:29 +0000
+++ b/src/callproc.c    2012-12-05 17:10:00 +0000
@@ -977,7 +977,15 @@
        close (fd);
     }
 #else
+    errno = 0;
     mktemp (tempfile);
+    if (!*tempfile)
+      {
+       if (!errno)
+         errno = EEXIST;
+       report_file_error ("Failed to open temporary file using pattern",
+                          Fcons (pattern, Qnil));
+      }
 #endif
 
     filename_string = build_string (tempfile);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]