/usr/bin/tla-gpg-check is in tla 1.3.5+dfsg1-2build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/usr/bin/gawk -f
/-----BEGIN PGP SIGNED MESSAGE-----/ {
if (first_line_seen)
{
bogosity = 1;
exit;
}
else
{
print $0 | gpg_command;
first_line_seen = 1;
}
next;
}
/-----END PGP SIGNATURE-----/ {
if (!first_line_seen)
{
bogosity = 1;
exit;
}
else
{
print $0 | gpg_command;
last_line_seen = 1;
}
next;
}
{
if (!first_line_seen || last_line_seen)
{
bogosity = 1;
exit;
}
else
{
print $0 | gpg_command;
}
next;
}
END {
if (bogosity || close(gpg_command))
{
exit 1;
}
else
{
exit 0;
}
}
# tag: Tom Lord Mon Jan 26 19:49:35 2004 (tla/=gpg-check.awk)
#
|