Skip to content

Commit

Permalink
Fix asterisk prefix for check entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Nov 8, 2022
1 parent 12bba55 commit 3ec075c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,13 @@ int processFile(const(char)[] path)
const(char)[] type = void, hash = void;
if (readSRILine(settings.against, type, hash))
logError(20, "Could not unformat SRI tag");

settings.hasher.toBase64;
succ = compareHash(settings.hasher.toBase64, hash);
}
else
{
succ = compareHash(
settings.hasher.toHex, settings.against);
succ = compareHash(settings.hasher.toHex, settings.against);
}
printStatus(file, succ);
if (succ == false)
Expand Down Expand Up @@ -606,6 +606,9 @@ int processList(const(char)[] listPath)
++statErrors;
logWarn("Could not read GNU tag at line %u", currentLine);
}

if (file[0] == '*')
file = file[1..$];
break;
case bsd:
if (readBSDLine(line, type, file, expected))
Expand Down

0 comments on commit 3ec075c

Please sign in to comment.