Bug#726798: amanda-server: amcheck -M <email> does not work
Package: amanda-server
Version: 1:3.3.1-4
Severity: normal
Tags: patch
amcheck -M <email> <conf> does not work.
It spawns a mail process but fail to provide the <email> on the arg list
I have found the issue and a patch is attached..
-- System Information:
Debian Release: 7.2
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (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/dash
Versions of packages amanda-server depends on:
pn amanda-common <none>
ii bsd-mailx [mailx] 8.1.2-0.20111106cvs-1
ii libc6 2.13-38
ii libcomerr2 1.42.5-1.1
ii libcurl3 7.26.0-1+wheezy4
ii libglib2.0-0 2.33.12+really2.32.4-5
ii libgssapi-krb5-2 1.10.1+dfsg-5+deb7u1
ii libk5crypto3 1.10.1+dfsg-5+deb7u1
ii libkrb5-3 1.10.1+dfsg-5+deb7u1
ii libkrb5support0 1.10.1+dfsg-5+deb7u1
ii libssl1.0.0 1.0.1e-2
amanda-server recommends no packages.
Versions of packages amanda-server suggests:
pn amanda-client <none>
ii cpio 2.11+dfsg-0.1
pn gnuplot <none>
ii mt-st 1.1-4
ii perl [perl5] 5.14.2-21+deb7u1
-- no debconf information
Description: Fix amcheck -M
--- amanda-3.3.1.orig/server-src/amcheck.c
+++ amanda-3.3.1/server-src/amcheck.c
@@ -448,8 +448,8 @@ main(
}
if(mailto) {
a = (char **) g_new0(char *, 2);
- a[1] = stralloc(mailto);
- a[2] = NULL;
+ a[0] = stralloc(mailto);
+ a[1] = NULL;
} else {
/* (note that validate_mailto doesn't allow any quotes, so this
* is really just splitting regular old strings) */
Reply to: