| 508 | } |
| 509 | |
| 510 | static bool skip_history(const char *line) |
| 511 | { |
| 512 | size_t n; |
| 513 | |
| 514 | while (isspace(*line)) |
| 515 | ++line; |
| 516 | |
| 517 | n = sizeof("set") - 1; |
| 518 | if (strncasecmp(line, "set", n)) { |
| 519 | return false; |
| 520 | } |
| 521 | line += n; |
| 522 | |
| 523 | while (isspace(*line)) |
| 524 | ++line; |
| 525 | |
| 526 | if (strncasecmp(line, "password", sizeof("password") - 1)) { |
| 527 | return false; |
| 528 | } |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | static bool has_delimiter(char *line, int len, char *delimiter, int dlen) |
| 533 | { |