projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cc6c9
)
taskset: fix logic error in "if it doesn't start with 0x..."
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 30 Aug 2014 23:35:45 +0000
(
01:35
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 30 Aug 2014 23:35:45 +0000
(
01:35
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/taskset.c
patch
|
blob
|
history
diff --git
a/miscutils/taskset.c
b/miscutils/taskset.c
index 8bd32ed61503f43841e30ef78c092a888bed7f03..2646e1dab9446cbeb32087e96fcc1dab86386672 100644
(file)
--- a/
miscutils/taskset.c
+++ b/
miscutils/taskset.c
@@
-176,7
+176,7
@@
int taskset_main(int argc UNUSED_PARAM, char **argv)
/* Cheap way to get "long enough" buffer */
bin = xstrdup(aff);
- if (aff[0] != '0'
&&
(aff[1]|0x20) != 'x') {
+ if (aff[0] != '0'
||
(aff[1]|0x20) != 'x') {
/* TODO: decimal/octal masks are still limited to 2^64 */
unsigned long long m = xstrtoull_range(aff, 0, 1, ULLONG_MAX);
bin += strlen(bin);