Experimental IRC client, daemon and bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-static 433B

1234567891011121314
  1. #!/bin/sh
  2. # We don't use printf's percent notation with our custom logging mechanism,
  3. # so the compiler cannot check it for us like it usually does
  4. perl -n0777 - "$(dirname "$0")"/degesch.c <<-'END'
  5. while (/\blog_[^ ]+\s*\([^"()]*"[^"]*%[^%][^"]*"/gm) {
  6. my ($p, $m) = ($`, $&);
  7. printf "$ARGV:%d: suspicious log format string: %s...\n",
  8. (1 + $p =~ tr/\n//), ($m =~ s/\s+/ /rg);
  9. $status = 1;
  10. }
  11. END {
  12. exit $status;
  13. }
  14. END