Package: backuppc
Version: 3.3.0-1
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, 
while patching BackupPC I came across this issue.
When the UserCommand ArchivePostUserCmd fails and this is configured to be 
fatal,
a reference to a wrong script (RestorePreUserCmd) is written to the log.

Attached patch fixes this.

coldtobi

- -- System Information:
Debian Release: jessie/sid
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlKboA8ACgkQvyUNygvkuQI1YACeMy5IKLESSxzkendTYYyBzfT4
DUYAoMt/riF2caVRLlCV+gsIRXKeF2sH
=y9pS
-----END PGP SIGNATURE-----
--- a/bin/BackupPC_archive
+++ b/bin/BackupPC_archive
@@ -299,7 +299,7 @@
     if ( $NeedPostCmd ) {
         UserCommandRun("ArchivePostUserCmd");
         if ( $? && $Conf{UserCmdCheckStatus} ) {
-            $stat{hostError} = "RestorePreUserCmd returned error status $?";
+            $stat{hostError} = "ArchivePostUserCmd returned error status $?";
             $stat{xferOK} = 0;
         }
     }

Reply via email to