Package: backupninja
Version: 0.9.4
Severity: important
Tags: patch

/usr/sbin/backupninja is using 'stat --printf=...'; unfortunately, --printf
is not supported by the 'stat' from coreutils, which is what is used on many
(most?) Linux distros (including debian etch, fedora, mandriva). Instead the
option is called --format.

The attached patch changes this.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages backupninja depends on:
ii  bash                      3.1-2          The GNU Bourne Again SHell
ii  dialog                    1.0-20060221-1 Displays user-friendly dialog boxe
ii  mawk                      1.3.3-11       a pattern scanning and text proces

backupninja recommends no packages.

-- no debconf information
--- /usr/sbin/backupninja.orig  2006-08-12 17:26:06.000000000 -0700
+++ /usr/sbin/backupninja       2006-08-12 18:20:23.000000000 -0700
@@ -132,7 +132,7 @@
 function check_perms() {
    local file=$1
    local perms
-   perms=($(stat -L --printf='%a %g %G %u %U' $file))
+   perms=($(stat -L --format='%a %g %G %u %U' $file))
    local gperm=${perms[0]:1:1}
    local wperm=${perms[0]:2:1}
    local gid=${perms[1]}

Reply via email to