Amanda-Users

Re: 2.5.1 parsing conf problems?

2006-09-11 15:15:17
Subject: Re: 2.5.1 parsing conf problems?
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
Date: Mon, 11 Sep 2006 15:10:08 -0400
Jean-Francois Malouin wrote:
* Jean-Louis Martineau <martineau AT zmanda DOT com> [20060911 14:05]:
Jean-Francois,

Your file parse correctly on my machine.

Mmmm, Interesting. You're running that on what? Irix?
On linux.
Could you attach the amanda.conf file instead of putting it inline
in the mail, maybe the mailer and or remove something.

This file is parsed correctly, it must be a SGI specific bug.
Could you try the attached patch and send me the complete output of:
 amadmin stk_180-conf10 config

Jean-Louis

diff -u -r --show-c-function --exclude-from=amanda.diff 
amanda-2.5.1.orig/common-src/util.c amanda-2.5.1.new/common-src/util.c
--- amanda-2.5.1.orig/common-src/util.c 2006-08-24 06:24:46.000000000 -0400
+++ amanda-2.5.1.new/common-src/util.c  2006-09-11 14:52:57.000000000 -0400
@@ -1595,6 +1595,8 @@ negative_number: /* look for goto negati
        else
            tokenval.v.s = "";
     }
+
+printf("tok: %d\n", (int)tok);
 }
 
 
diff -u -r --show-c-function --exclude-from=amanda.diff 
amanda-2.5.1.orig/server-src/conffile.c amanda-2.5.1.new/server-src/conffile.c
--- amanda-2.5.1.orig/server-src/conffile.c     2006-07-26 11:17:37.000000000 
-0400
+++ amanda-2.5.1.new/server-src/conffile.c      2006-09-11 15:00:02.000000000 
-0400
@@ -1039,9 +1039,11 @@ read_confline(
        break;
 
     case CONF_NL:      /* empty line */
+printf("Parsed CONF_NL\n");
        break;
 
     case CONF_END:     /* end of file */
+printf("Parsed CONF_END\n");
        return 0;
 
     default:
@@ -1050,7 +1052,7 @@ read_confline(
                if(np->token == tok) break;
 
            if(np->token == CONF_UNKNOWN) {
-               conf_parserror("configuration keyword expected");
+               conf_parserror("configuration keyword expected %d", (int)tok);
            } else {
                np->read_function(np, &server_conf[np->parm]);
                if(np->validate)
<Prev in Thread] Current Thread [Next in Thread>