From: Mark Wooding Date: Sun, 4 May 2014 09:44:59 +0000 (+0100) Subject: Makefile: Better signature corruption. X-Git-Url: https://git.distorted.org.uk/~mdw/dnserr/commitdiff_plain/263d66f63e85b26d74a5a7c3525b7494015e4d42 Makefile: Better signature corruption. Just twiddle the case of one letter in the signature. --- diff --git a/Makefile b/Makefile index d1c6653..b134f09 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,16 @@ dnserr.zone.sig: dnserr.zone.sigold dnserr.zone.signew if (!doneoldsig) { system("cat t.oldsig"); doneoldsig = 1; } \ next; \ } \ - { gsub(/invalid-rrsigx/, "invalid-rrsig"); print; }' \ + $(BADSIGMATCH) { \ + s = $$13; \ + for (i = length(s)/2; i >= 0; i--) { \ + c = substr(s, i, 1); \ + if (c != tolower(c)) { c = tolower(c); break; } \ + else if (c != toupper(c)) { c = toupper(c); break; } \ + } \ + $$13 = substr(s, 0, i) c substr(s, i + 1); \ + } \ + { print; }' \ dnserr.zone.signew >$@.new rm t.oldsig mv $@.new $@