On 08/15/2014 02:32 AM, Allen Liu wrote:
Settings:
[root@lc2 amanda]# cat /var/lib/amanda/.amandahosts
lc1 root
localhost root
lc2 root
lc2 amandabackup
lc2 root amindexd amidxtaped
localhost root amindexd amidxtaped
localhost.localdomain root amindexd amidxtaped

Amanda stop reading after the first line that match the hostname and user.
It stop after 'lc2 root'

in 'man amanda-auth', you can read that a line without services do include the amindexd and amidxtaped services.

The attached patch allow amanda to read the next line.

Jean-Louis

diff --git a/common-src/security-util.c b/common-src/security-util.c
index a82b366..360eb91 100644
--- a/common-src/security-util.c
+++ b/common-src/security-util.c
@@ -2303,7 +2303,7 @@ check_user_amandahosts(
 	    }
 	    else {
 		amfree(line);
-		break;
+		continue;
 	    }
 	}
 

Reply via email to