From: Andrew Dinh Date: Mon, 20 Jul 2026 02:05:59 +0000 (+0700) Subject: Fix clean target find/-prune precedence bug X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=458bfef110dc0f1d2bbe4eb93840f32c51b9d50d;p=thirdparty%2Fopenssl.git Fix clean target find/-prune precedence bug The clean target's find command intended -prune to apply to the whole -o chain of excluded submodule paths, but -prune only binds to the immediately preceding -path, so only the last path (wycheproof) was actually protected from recursion. Earlier submodules (cloudflare-quiche, pkcs11-provider, etc.) were still descended into, letting make clean delete vendored symlinks inside them. Move -prune outside the parenthesized path list so it applies whenever any excluded path matches. Assisted-by: Claude:claude-sonnet-5 Fixes: 70741ee62a50 "Configurations/unix-Makefile.tmpl: make cleanup faster" Reviewed-by: Nikola Pajkovsky Reviewed-by: Bob Beck Reviewed-by: Milan Broz Reviewed-by: Eugene Syromiatnikov MergeDate: Tue Jul 21 09:21:37 2026 (Merged from https://github.com/openssl/openssl/pull/32006) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 6c51e34f7a5..3f9d04b6d02 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -660,8 +660,8 @@ clean: libclean ## Clean the workspace, keep the configuration -o -path './python-ecdsa' \ -o -path './tlsfuzzer' \ -o -path './tlslite-ng' \ - -o -path './wycheproof' \ - -prune \) \ + -o -path './wycheproof' \) \ + -prune \ -o \! -type d \ \( -name '*{- platform->depext() -}' \ -o -name '*{- platform->objext() -}' \