summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak2019-03-20 13:12:25 +0100
committerKarel Zak2019-03-20 13:12:25 +0100
commit65bcbf105bfc5f6510b8df8db09d9458f942c799 (patch)
tree37845ed501bba2e920aaaadc955842cf06c7fa21 /login-utils
parentlscpu: (man) tiny changes (diff)
downloadkernel-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