From 239ec380d9055d4b620318cdfd6f3114f8627d26 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 5 Nov 1996 05:14:20 +0000 Subject: [PATCH] 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 --- src/util/profile/ChangeLog | 5 +++++ src/util/profile/prof_parse.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.26.2