[krbdev.mit.edu #1988] profile library fails to handle space in front of comments

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[krbdev.mit.edu #1988] profile library fails to handle space in front of comments

Greg Hudson via RT
Here's the trivial patch to fix this, courtesy of Jeremie Koenig.

--- krb5/trunk/krb5/src/util/profile/prof_parse.c 2005-07-11 03:25:00
UTC (rev 1924)
+++ krb5/trunk/krb5/src/util/profile/prof_parse.c 2005-07-11 22:48:16
UTC (rev 1925)
@@ -89,10 +89,10 @@
 
  if (*line == 0)
  return 0;
- if (line[0] == ';' || line[0] == '#')
+ cp = skip_over_blanks(line);
+ if (cp[0] == ';' || cp[0] == '#')
  return 0;
- strip_line(line);
- cp = skip_over_blanks(line);
+ strip_line(cp);
  ch = *cp;
  if (ch == 0)
  return 0;
_______________________________________________
krb5-bugs mailing list
[hidden email]
https://mailman.mit.edu/mailman/listinfo/krb5-bugs