testparm improvement request

Steve Litt slitt at troubleshooters.com
Wed Dec 1 18:08:35 GMT 1999


I run Samba 2.0.6 on almost stock Red Hat 6.0, and when I put a bogus line
on top, it tells me text from the line instead of the failure you
experienced. What version do you run, and what was that infamous top line?

Steve Litt


At 03:19 AM 12/02/1999 +1100, you wrote:
>I was going nuts yesterday because the first comment character in
>the first line of the smb.conf disappeared.
>
>#============================ Share Definitions
==============================
># The following two entries demonstrate how to share a directory so that two
>
>became
>
>============================ Share Definitions ==============================
># The following two entries demonstrate how to share a directory so that two
>
>testparm gave this report:
>
>params.c:Parameter() - Invalid parameter name in config. file.
>params.c:pm_process() - Failed.  Error returned from params.c:parse().
>Error loading services.
>
>Since that particular file has over 1700 parameters, finding the bad one 
>would be difficult.
>
>Would it be possible to output the line number and/or the closest section 
>name to make
>tracking down errors easier?  Also, is that a hard-coded limited of 1000 
>service definitions
>in testparm.c?  Thanks.
>
>



More information about the samba mailing list