about summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-05 20:13:16 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-05 20:13:16 +0200
commit8a9825596b0cff53d3cf1475ad540f23273442bb (patch)
tree32944467e9dc91935bc85ac33da7eb7a8e24d1dc /contrib
parent470d7f85a0aebe2e3bb6ef18006977fb2dfc379b (diff)
downloadmblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.tar.gz
mblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.tar.xz
mblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.zip
mverify: use 0+x to force number
+x does not work in nawk/*BSD awk.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/mverify6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/mverify b/contrib/mverify
index 740ce83..0edf234 100755
--- a/contrib/mverify
+++ b/contrib/mverify
@@ -8,9 +8,9 @@
 mshow -t "$1" | awk -v "msg=$1" '
 { match($0, "^ *"); indent = RLENGTH }
 $2 == "text/plain" { plain++ }
-$2 == "multipart/signed" { signed = +$1; si = indent; next }
-signed && !content && indent == si+2 { content = +$1; next }
-signed && content && !signature && indent == si+2 { signature = +$1; type = $2 }
+$2 == "multipart/signed" { signed = 0+$1; si = indent; next }
+signed && !content && indent == si+2 { content = 0+$1; next }
+signed && content && !signature && indent == si+2 { signature = 0+$1; type = $2 }
 function q(a) { gsub("\\47", "\47\\\47\47", a); return "\47"a"\47" }
 END {
 	if (type == "" && plain) {  // guess plain text armored signature