aboutsummaryrefslogtreecommitdiff
path: root/bin/sec.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sec.awk')
-rw-r--r--bin/sec.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sec.awk b/bin/sec.awk
index aab8fcf4..45befd76 100644
--- a/bin/sec.awk
+++ b/bin/sec.awk
@@ -5,8 +5,9 @@ BEGIN {
FS = ":"
}
-# If no fields or illegal characters, warn, skip line, accrue errors
-!NF || /[^0-9:]/ {
+# If no fields, too many fields, or illegal characters, warn, skip line, accrue
+# errors
+!NF || NF > 3 || /[^0-9:]/ {
print "sec: Bad format" > "/dev/stderr"
err = 1
next