From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Changes in update-game-score.c
Date: Fri, 24 Jan 2014 00:42:35 -0800 [thread overview]
Message-ID: <52E2277B.9000205@cs.ucla.edu> (raw)
In-Reply-To: <83lhy5ests.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Eli Zaretskii wrote:
> sumo changesets make maintenance harder
Sure, but the change that prompted this thread (trunk bzr 116113)
deleted 13 lines of code and added 8. That's a small changeset, not a
sumo one.
> the comparison is invalid because this [other] change wasn't fixing any bug, it's more like whitespace cleanup.
It's easy to find bug-fixing changes that behave the same way. For
example, the most recent bug-fixing patch that you installed (attached)
actually consists of multiple independent changes. One change replaces
fchmod with chmod on WINDOWSNT platforms, fixing a porting bug; but
another change replaces "!=" with "<" on WINDOWSNT, and this change does
not fix any bug.
This sort of thing happens all the time, and it's OK. It'd be
unreasonable to insist that every patch to Emacs now must fix just one
bug and must not make any changes that do not fix the bug.
[-- Attachment #2: w32.diff --]
[-- Type: text/x-patch, Size: 939 bytes --]
=== modified file 'lib-src/ChangeLog'
--- lib-src/ChangeLog 2014-01-22 19:02:41 +0000
+++ lib-src/ChangeLog 2014-01-22 19:38:31 +0000
@@ -1,3 +1,8 @@
+2014-01-22 Eli Zaretskii <eliz@gnu.org>
+
+ * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
+ instead of fchmod.
+
2014-01-22 Paul Eggert <eggert@cs.ucla.edu>
Fix miscellaneous update-game-score bugs.
=== modified file 'lib-src/update-game-score.c'
--- lib-src/update-game-score.c 2014-01-22 19:02:41 +0000
+++ lib-src/update-game-score.c 2014-01-22 19:38:31 +0000
@@ -443,8 +443,10 @@
fd = mkostemp (tempfile, 0);
if (fd < 0)
return -1;
+#ifndef WINDOWSNT
if (fchmod (fd, 0644) != 0)
return -1;
+#endif
f = fdopen (fd, "w");
if (! f)
return -1;
@@ -457,6 +459,10 @@
return -1;
if (rename (tempfile, filename) != 0)
return -1;
+#ifdef WINDOWSNT
+ if (chmod (filename, 0644) < 0)
+ return -1;
+#endif
return 0;
}
next prev parent reply other threads:[~2014-01-24 8:42 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 19:42 Changes in update-game-score.c Eli Zaretskii
2014-01-22 19:50 ` David Kastrup
2014-01-22 20:07 ` Eli Zaretskii
2014-01-22 20:10 ` David Kastrup
2014-01-23 1:51 ` Glenn Morris
2014-01-23 3:33 ` Paul Eggert
2014-01-23 3:53 ` Eli Zaretskii
2014-01-23 16:02 ` Eli Zaretskii
2014-01-23 3:58 ` Glenn Morris
2014-01-23 3:32 ` Paul Eggert
2014-01-23 3:52 ` Eli Zaretskii
2014-01-23 3:59 ` Glenn Morris
2014-01-23 4:30 ` Glenn Morris
2014-01-23 4:33 ` Glenn Morris
2014-01-23 4:56 ` Paul Eggert
2014-01-23 16:07 ` Eli Zaretskii
2014-01-23 18:18 ` Paul Eggert
2014-01-23 20:27 ` Juanma Barranquero
2014-01-23 21:50 ` Paul Eggert
2014-01-23 22:39 ` Juanma Barranquero
2014-01-24 7:34 ` Eli Zaretskii
2014-01-24 8:42 ` Paul Eggert [this message]
2014-01-24 9:17 ` Eli Zaretskii
2014-01-24 15:29 ` Jarek Czekalski
2014-01-24 15:40 ` Eli Zaretskii
2014-01-24 15:42 ` change the Subject line when you change topics [was: Changes in update-game-score.c] Drew Adams
2014-01-25 10:00 ` Jarek Czekalski
2014-01-24 16:43 ` Patches with independent changes Paul Eggert
2014-01-24 21:39 ` Eli Zaretskii
2014-01-24 22:34 ` Paul Eggert
2014-01-25 7:22 ` Eli Zaretskii
2014-01-25 17:01 ` Paul Eggert
2014-01-25 17:22 ` Eli Zaretskii
2014-01-25 17:25 ` Eli Zaretskii
2014-01-25 20:58 ` Paul Eggert
2014-01-26 3:47 ` Eli Zaretskii
2014-01-26 7:41 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E2277B.9000205@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.