Package: quilt
Version: 0.46-4
Severity: minor
Tags: patch

Even when the problematic quilt pop -R option is avoided, quilt generates
noise when cross-directory hardlinks aren't supported.  This problem isn't
present upstream in the C version of backup_files, but its behavior wasn't
entirely copied in the shell replacement.

This patch discards error output from ln when falling back to cp.  Since
the fallback to cp is there, any error that would affect both will be
also displayed by cp, so this patch shouldn't discard meaningful errors.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages quilt depends on:
ii  bzip2                     1.0.3-7        high-quality block-sorting file co
ii  diffstat                  1.45-2         produces graph of changes introduc
ii  gawk [awk]                1:3.1.5.dfsg-4 GNU awk, a pattern scanning and pr
ii  gettext                   0.16.1-2       GNU Internationalization utilities
ii  mawk [awk]                1.3.3-11       a pattern scanning and text proces
ii  patch                     2.5.9-4        Apply a diff file to an original

quilt recommends no packages.

-- no debconf information
--- quilt-0.46.orig/quilt/scripts/backup-files.in
+++ quilt-0.46/quilt/scripts/backup-files.in
@@ -49,7 +49,7 @@
 link_or_copy_file() {
        from="$1"
        to="$2"
-       if ! ln "$from" "$to" || [ -d "$to" ]; then
+       if ! ln "$from" "$to" 2>/dev/null || [ -d "$to" ]; then
                cp -dp --remove-destination "$from" "$to"
        fi
 }

Reply via email to