aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-12-19 16:50:10 -0600
committerRob Landley <rob@landley.net>2018-12-19 16:50:10 -0600
commit5ebd387640ed45bd320431ad30ec92103166ef74 (patch)
tree41cc271d225a3c48237cefe4bbdea97b8e2ef6c2 /toys/posix
parentb3b5ae1240cc45db80a2412e769ebace72281f00 (diff)
downloadtoybox-5ebd387640ed45bd320431ad30ec92103166ef74.tar.gz
Fix sort -x attached to a key.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/sort.c b/toys/posix/sort.c
index 2f4d49a0..4c9452eb 100644
--- a/toys/posix/sort.c
+++ b/toys/posix/sort.c
@@ -328,7 +328,7 @@ void sort_main(void)
// Was it a flag that can apply to a key?
- if (!temp2 || flag>FLAG_b
+ if (!temp2 || flag>FLAG_x
|| (flag&(FLAG_u|FLAG_c|FLAG_s|FLAG_z)))
{
error_exit("Unknown key option.");