aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 00:36:59 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:14:52 +0200
commita93d7e468893343a55a16af461375a90b57976c2 (patch)
tree6fc639e430a6188c7a4a2cc804dde459aa5bb4a5
parentglobal: prefix functions used in callbacks with wg_ (diff)
downloadWireGuard-a93d7e468893343a55a16af461375a90b57976c2.tar.xz
WireGuard-a93d7e468893343a55a16af461375a90b57976c2.zip
create-patch: blacklist instead of whitelist
This will deal with filename changes more gracefully. Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch>
-rwxr-xr-xcontrib/kernel-tree/create-patch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/kernel-tree/create-patch.sh b/contrib/kernel-tree/create-patch.sh
index 6a37229..bb3fa2b 100755
--- a/contrib/kernel-tree/create-patch.sh
+++ b/contrib/kernel-tree/create-patch.sh
@@ -7,7 +7,8 @@ shopt -s globstar
WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")"
-for i in "$WG"/*.c "$WG"/*.h "$WG"/uapi/*.h "$WG"/selftest/*.h "$WG"/Kbuild "$WG"/Kconfig "$WG"/crypto/**/*.c "$WG"/crypto/**/*.h "$WG"/crypto/**/*.S "$WG"/crypto/**/*.include "$WG"/compat/**/*.c "$WG"/compat/**/*.h "$WG"/compat/**/*.include; do
+for i in "$WG"/**/{*.c,*.h,*.S,*.include} "$WG/Kbuild" "$WG/Kconfig"; do
+ [[ $i == "$WG/tools/"* || $i == "$WG/tests/"* ]] && continue
diff -u /dev/null "$i" | sed "s:${WG}:b/net/wireguard:;s:Kbuild:Makefile:"
done