Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian....@packages.debian.org
Usertags: pu

Hi,

[ Reason ]
I'd like to fix #986462 in Stable as well.

[ Impact ]
Crash of the script if using the LATEST=yes option in
/etc/default/automysqlbackup

[ Tests ]
This was tested manually, both by me and the reporter.

[ Risks ]
This is a trivial one char fix, there's not much risk
involved here.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

Cheers,

Thomas Goirand (zigo)
diff -Nru automysqlbackup-2.6+debian.4/debian/changelog 
automysqlbackup-2.6+debian.4/debian/changelog
--- automysqlbackup-2.6+debian.4/debian/changelog       2020-07-04 
20:56:25.000000000 +0200
+++ automysqlbackup-2.6+debian.4/debian/changelog       2021-08-30 
16:50:19.000000000 +0200
@@ -1,3 +1,9 @@
+automysqlbackup (2.6+debian.4-3+deb11u1) bullseye; urgency=medium
+
+  * Fix borken cp code when using LATEST=yes (Closes: #986462).
+
+ -- Thomas Goirand <z...@debian.org>  Mon, 30 Aug 2021 16:50:19 +0200
+
 automysqlbackup (2.6+debian.4-3) unstable; urgency=medium
 
   * Switch to debhelper 12 (Closes: #965420).
diff -Nru automysqlbackup-2.6+debian.4/debian/patches/direct-compression.patch 
automysqlbackup-2.6+debian.4/debian/patches/direct-compression.patch
--- automysqlbackup-2.6+debian.4/debian/patches/direct-compression.patch        
2020-07-04 20:56:25.000000000 +0200
+++ automysqlbackup-2.6+debian.4/debian/patches/direct-compression.patch        
2021-08-30 16:50:19.000000000 +0200
@@ -68,7 +68,7 @@
 +              fi
 +      fi
 +      if [ "$LATEST" = "yes" ]; then
-+              cp $1$SUFFIX "$BACKUPDIR/latest/"
++              cp $2$SUFFIX "$BACKUPDIR/latest/"
        fi
        return 0
  }

Reply via email to