[23602] in Kerberos

home help back first fref pref prev next nref lref last post

Question about comments in configfiles

daemon@ATHENA.MIT.EDU (Michael Calmer)
Wed Mar 30 10:46:08 2005

From: Michael Calmer <mc@suse.de>
To: kerberos@mit.edu
Date: Wed, 30 Mar 2005 17:45:15 +0200
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Disposition: inline
Message-Id: <200503301745.16123.mc@suse.de>
Content-Transfer-Encoding: 8bit
Errors-To: kerberos-bounces@mit.edu

Hi,

if i read the source code correct with MIT kerberos a comment sign is only 
allowed at the beginning of the line. Is there a reason why spaces before the 
comment sign aren't allowed? 

I think many people wants do this:

[libdefaults]
   #default_realm = EXAMPLE.COM
   default_realm = MY.REALM

I think to change this behaviour is very easy.

============= original prof_parse.c ===================
[...]
        if (line[0] == ';' || line[0] == '#')
                return 0;
        strip_line(line);
        cp = skip_over_blanks(line);
        ch = *cp;
        if (ch == 0)
                return 0;
[...]
========================================================

The only change is to do "skip_over_blanks(line)" first and after this, check 
for a comment sign. 

But does it have side effects?

Thanks for any insight on this question.

-- 
MFG

	Michael Calmer

--------------------------------------------------------------------------
Michael Calmer
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nürnberg
T: +49 (0) 911 74053 0
F: +49 (0) 911 74053575  - Michael.Calmer@suse.com
--------------------------------------------------------------------------

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post