Accept either ';' or '#' on the first line of a string as a comment
authorTheodore Tso <tytso@mit.edu>
Tue, 5 Nov 1996 05:14:20 +0000 (05:14 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 5 Nov 1996 05:14:20 +0000 (05:14 +0000)
character.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9294 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_parse.c

index 663e95b8043e4ff3492aff2c9d7123c6a638acd6..9bfcde82417917b0eb4aa4227ad322bdbb18c2fa 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov  4 17:04:51 1996  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * Makefile.in (CFLAGS): On Windows builds, add -DHAVE_STDLIB_H
index 9c83b8fdcd7c8fd4092cc3b5d99667b9b43ed539..941cc33f7c97eb65108313d82def1589fc8af624 100644 (file)
@@ -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);