diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 00:02:53 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 00:02:53 +1300 |
commit | 74062c9873fbded945c485627ef14bda74b679af (patch) | |
tree | 6bf2bee601a181d2ebc0f141374317687c814ae2 /bin | |
parent | Condense slsf(1df) conditions a bit (diff) | |
download | dotfiles-74062c9873fbded945c485627ef14bda74b679af.tar.gz dotfiles-74062c9873fbded945c485627ef14bda74b679af.zip |
Have sec(1df) notice too many fields
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sec.awk | 5 |
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 |