emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r111557: Fix size bug on DOS_NT intro


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111557: Fix size bug on DOS_NT introduced by CIFS workaround.
Date: Sat, 19 Jan 2013 04:29:10 -0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111557
fixes bug: http://debbugs.gnu.org/13149
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2013-01-19 04:29:10 -0800
message:
  Fix size bug on DOS_NT introduced by CIFS workaround.
  
  * fileio.c (Fwrite_region): Use O_BINARY in checking code, too.
modified:
  src/ChangeLog
  src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-01-19 09:59:51 +0000
+++ b/src/ChangeLog     2013-01-19 12:29:10 +0000
@@ -1,5 +1,8 @@
 2013-01-19  Paul Eggert  <address@hidden>
 
+       Fix size bug on DOS_NT introduced by CIFS workaround (Bug#13149).
+       * fileio.c (Fwrite_region): Use O_BINARY in checking code, too.
+
        Allow floating-point file offsets.
        Problem reported by Vitalie Spinu in
        <http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00411.html>.

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2013-01-19 12:17:20 +0000
+++ b/src/fileio.c      2013-01-19 12:29:10 +0000
@@ -4989,7 +4989,7 @@
   if (EMACS_TIME_VALID_P (modtime)
       && ! (valid_timestamp_file_system && st.st_dev == timestamp_file_system))
     {
-      int desc1 = emacs_open (fn, O_WRONLY, 0);
+      int desc1 = emacs_open (fn, O_WRONLY | O_BINARY, 0);
       if (0 <= desc1)
        {
          struct stat st1;


reply via email to

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