From: Theodore Tso Date: Tue, 5 Nov 1996 05:14:20 +0000 (+0000) Subject: Accept either ';' or '#' on the first line of a string as a comment X-Git-Tag: krb5-1.0-freeze1~131 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=239ec380d9055d4b620318cdfd6f3114f8627d26;p=krb5.git Accept either ';' or '#' on the first line of a string as a comment character. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9294 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 663e95b80..9bfcde824 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 4 17:04:51 1996 Theodore Y. Ts'o + + * prof_parse.c (parse_std_line): Accept either ';' or '#' on the + first line of a string as a comment character. + Fri Jul 12 20:28:49 1996 Theodore Y. Ts'o * Makefile.in (CFLAGS): On Windows builds, add -DHAVE_STDLIB_H diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c index 9c83b8fdc..941cc33f7 100644 --- a/src/util/profile/prof_parse.c +++ b/src/util/profile/prof_parse.c @@ -64,7 +64,7 @@ static errcode_t parse_std_line(line, state) if (*line == 0) return 0; - if (line[0] == ';') + if (line[0] == ';' || line[0] == '#') return 0; strip_line(line); cp = skip_over_blanks(line);