Skip to content

Commit

Permalink
Fix race condition in helper script
Browse files Browse the repository at this point in the history
`kem/*/nist` must not be deleted before `find kem/*/` completes.
  • Loading branch information
tniessen committed May 29, 2023
1 parent 4774ca7 commit d411b70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/mceliece/extract-kem-from-nist-submission
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ patch_files() {
id=$1

(
# Only required for the NIST submission.
echo kem/$id/nist
# Non-source files.
find kem/$id/ -type f ! -name '*.c' ! -name '*.h'
# Only required for the NIST submission.
echo kem/$id/nist
# Irrelevant header files.
echo kem/$id/api.h
) | while read f; do
rm -rf "$f"
rm -r "$f"
echo "- Removed $f"
done

Expand Down

0 comments on commit d411b70

Please sign in to comment.