diff options
author | Karel Zak | 2019-03-20 13:12:25 +0100 |
---|---|---|
committer | Karel Zak | 2019-03-20 13:12:25 +0100 |
commit | 65bcbf105bfc5f6510b8df8db09d9458f942c799 (patch) | |
tree | 37845ed501bba2e920aaaadc955842cf06c7fa21 /login-utils | |
parent | lscpu: (man) tiny changes (diff) | |
download | kernel-qcow2-util-linux-65bcbf105bfc5f6510b8df8db09d9458f942c799.tar.gz kernel-qcow2-util-linux-65bcbf105bfc5f6510b8df8db09d9458f942c799.tar.xz kernel-qcow2-util-linux-65bcbf105bfc5f6510b8df8db09d9458f942c799.zip |
taskset: fix cpuset list parser
taskset hangs when executed with badly formatted cpuset list, for
example:
$ taskset -c 0--1 true
The current cpuset list parser is pretty weak as based on scanf()
without strings verification ("-1" as input for "%u" returns
unexpected number). It seems faster and better to use strtoul() and
isdigit().
Addresses: https://github.com/karelzak/util-linux/issues/77
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
0 files changed, 0 insertions, 0 deletions