diff --git a/vmtouch.c b/vmtouch.c index dade9b7..53ef228 100644 --- a/vmtouch.c +++ b/vmtouch.c @@ -881,6 +881,8 @@ static void vmtouch_batch_crawl(const char *path) { while ((read = getdelim(&line, &len, delim, f)) != -1) { // strip the newline character line[read-1] = '\0'; + // skip comments + if (line[0] == '#') continue; vmtouch_crawl(line); }