]> granicus.if.org Git - sysstat/commit
Tools that take --dec=X option should only accept digits
authorLukáš Zaoral <lzaoral@redhat.com>
Tue, 21 Feb 2023 11:43:42 +0000 (12:43 +0100)
committerLukáš Zaoral <lzaoral@redhat.com>
Tue, 21 Feb 2023 11:43:42 +0000 (12:43 +0100)
commit398585bfe7b1340d41143f50dfc868ef8ab9a5e4
tree5dfc43f6b8efd7f94a1ca371f77ef3de37e047fc
parent3c5f412861c8c5efe776b5973f8765e0c81cf62f
Tools that take --dec=X option should only accept digits

Right now the argument of --dec is passed to atoi(3) which returns 0
on conversion error.  Therefore, --dec=A was not rejected and was
equivalent to --dec=0 by mistake.

Signed-off-by: Lukáš Zaoral <lzaoral@redhat.com>
cifsiostat.c
iostat.c
mpstat.c
pidstat.c
sar.c