Debian Bug report logs -
#558485
patch creates backup files with 000 perms for newly created files
Reported by: Raphaël Hertzog <hertzog@debian.org>
Date: Sun, 29 Nov 2009 11:27:05 UTC
Severity: normal
Found in version patch/2.5.9-5
Fixed in version patch/2.6-1
Done: Christoph Berg <myon@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Christoph Berg <myon@debian.org>:
Bug#558485; Package patch.
(Sun, 29 Nov 2009 11:27:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Raphaël Hertzog <hertzog@debian.org>:
New Bug report received and forwarded. Copy sent to Christoph Berg <myon@debian.org>.
(Sun, 29 Nov 2009 11:27:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: patch
Version: 2.5.9-5
Severity: normal
Patch suffers from a mis-feature, namely that it creates backup files with
000 perms when the patch creates a new file (and thus there's no original
file to backup). It's documented but apparently that behaviour has changed
in patch 2.6.
http://ftp.gnu.org/gnu/patch/patch-2.6.tar.gz
-b or --backup
Make backup files. That is, when patching a file, rename or copy the
original instead of removing it. When backing up a file that does not
exist, an empty, unreadable backup file is created as a placeholder to
represent the nonexistent file. See the -V or --version-control option
for details about how backup file names are determined.
This behaviour leads to uncopyable files which is a pain in particular for
quilt (cf #534840) and it would be nice to see a fixed version of patch in
sid.
Thanks.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages patch depends on:
ii libc6 2.10.2-2 GNU C Library: Shared libraries
patch recommends no packages.
Versions of packages patch suggests:
pn diff-doc <none> (no description available)
ii ed 1.4-1 The classic UNIX line editor
-- no debconf information
Added indication that bug 558485 blocks 557386
Request was from Raphaël Hertzog <hertzog@debian.org>
to control@bugs.debian.org.
(Sun, 29 Nov 2009 11:57:21 GMT) (full text, mbox, link).
Added indication that bug 558485 blocks 534840,538683
Request was from Raphaël Hertzog <hertzog@debian.org>
to control@bugs.debian.org.
(Sun, 29 Nov 2009 11:57:23 GMT) (full text, mbox, link).
Reply sent
to Christoph Berg <myon@debian.org>:
You have taken responsibility.
(Mon, 30 Nov 2009 17:06:24 GMT) (full text, mbox, link).
Notification sent
to Raphaël Hertzog <hertzog@debian.org>:
Bug acknowledged by developer.
(Mon, 30 Nov 2009 17:06:24 GMT) (full text, mbox, link).
Message #14 received at 558485-close@bugs.debian.org (full text, mbox, reply):
Source: patch
Source-Version: 2.6-1
We believe that the bug you reported is fixed in the latest version of
patch, which is due to be installed in the Debian FTP archive:
patch_2.6-1.diff.gz
to main/p/patch/patch_2.6-1.diff.gz
patch_2.6-1.dsc
to main/p/patch/patch_2.6-1.dsc
patch_2.6-1_amd64.deb
to main/p/patch/patch_2.6-1_amd64.deb
patch_2.6.orig.tar.gz
to main/p/patch/patch_2.6.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 558485@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Berg <myon@debian.org> (supplier of updated patch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 30 Nov 2009 15:22:49 +0100
Source: patch
Binary: patch
Architecture: source amd64
Version: 2.6-1
Distribution: unstable
Urgency: low
Maintainer: Christoph Berg <myon@debian.org>
Changed-By: Christoph Berg <myon@debian.org>
Description:
patch - Apply a diff file to an original
Closes: 271946 372769 386188 402737 445309 558485
Changes:
patch (2.6-1) unstable; urgency=low
.
* New upstream version. Fixes:
+ Closes: #402737: append to .rej files instead of overwriting them
+ Closes: #372769: patch aborts with "pch.c:622: intuit_diff_type:
Assertion `i0 != NONE' failed."
+ Closes: #558485: patch creates backup files with 000 perms for newly
created files
+ Closes: #386188: -o creates empty output on null patch
+ Closes: #271946: fails to create new files when POSIXLY_CORRECT is set
+ Closes: #445309: output result to stdout
* Document in NEWS that the unified-reject-files and global-reject-file
options are now included upstream, but called differently.
* Enable test suite.
Checksums-Sha1:
da0037d600ddad97b0c4551fe37c3210acf0e567 922 patch_2.6-1.dsc
c30bcea10faea7f4e16aa4614742d119257dd4cc 300563 patch_2.6.orig.tar.gz
9b6cf2855752a57d72213c69ab300dd6edf2ccf4 7907 patch_2.6-1.diff.gz
8cfe9e4a98e88f57c80120551f981574b5e492e3 119744 patch_2.6-1_amd64.deb
Checksums-Sha256:
9b4935373ca2104a52deea1be1c64317d457c1d7e3d3980d2f6b8412db33abbe 922 patch_2.6-1.dsc
d3912c36c3b8952e1d6579717075c69fb2621b0efd8d27bfe28eb4a43e27dc4c 300563 patch_2.6.orig.tar.gz
a85d39d32c823cbbd5388b53270ca0567466a1030f295fea34bb4e25ffd58571 7907 patch_2.6-1.diff.gz
020d8eafeb24d86aee88d9793a294d13a88b7f24f3a9ef30e07851280b2ce2c6 119744 patch_2.6-1_amd64.deb
Files:
47669ee120b833e1d0c3709e76bb03a7 922 utils standard patch_2.6-1.dsc
bc71d33c35004db3768465bcaf9ed23c 300563 utils standard patch_2.6.orig.tar.gz
f7de4013e5e897ee6cb30cd371c941df 7907 utils standard patch_2.6-1.diff.gz
003fb231d903ddf9629156229b9987b0 119744 utils standard patch_2.6-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAksT9+QACgkQxa93SlhRC1roKACgjEK6r0OHWmL7FQu4PTcPhnSf
XwoAn1cb5qx2kAm7QwJS7MXg4TTCaWC0
=OP5N
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 31 Dec 2009 07:44:17 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 7 09:52:32 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.