diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | sponge.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 3a62905..f933dc7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ moreutils (0.63) UNRELEASED; urgency=medium Thanks, Stig Palmquist. * ts: Fix ts -m %.s to not output negative microseconds. Thanks, Dima Kogan + * sponge: Fix bug in -a mode that doubled original content of file when + the temp file is located on a different filesystem. -- Joey Hess <id@joeyh.name> Wed, 22 Aug 2018 21:00:58 -0400 @@ -372,7 +372,7 @@ int main (int argc, char **argv) { } else { /* Fall back to slow copy. */ - outfile = fopen(outname, append ? "a" : "w"); + outfile = fopen(outname, "w"); if (!outfile) { perror("error opening output file"); exit(1); |