Skip to content

Commit

Permalink
Skip commented out lines in auth file.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeaubert committed May 23, 2014
1 parent 25abee5 commit 995acda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ bool load_auth_file(const char *fn)
if (!*p)
break;

/* skip commented-out lines */
if (*p == ';') {
while (*p && *p != '\n') p++;
continue;
}

/* start of line */
if (*p != '"') {
log_error("broken auth file");
Expand Down

0 comments on commit 995acda

Please sign in to comment.