Question about comments in configfiles
Michael Calmer
mc at suse.de
Wed Mar 30 10:45:15 EST 2005
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 at suse.com
--------------------------------------------------------------------------
More information about the Kerberos
mailing list