aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-02-02 16:50:46 -0800
committerRob Landley <rob@landley.net>2017-02-03 17:15:32 -0600
commit0685ab75525609cddfeadc6ad8da6f2ff18be7ac (patch)
treef6a6b00d3753de8daa1ec0720edba0bc1fce8b72 /toys
parent2b4594c50b4a2fe2106af85ce4fd369fbc0820e3 (diff)
downloadtoybox-0685ab75525609cddfeadc6ad8da6f2ff18be7ac.tar.gz
Fix operator precedence error in df.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/df.c b/toys/posix/df.c
index 3b6e6d4c..fddc3039 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -202,7 +202,7 @@ void df_main(void)
if (mt->stat.st_dev == mt2->stat.st_dev) {
// For --bind mounts, show earliest mount
if (!strcmp(mt->device, mt2->device)) {
- if (!toys.optflags & FLAG_a) mt3->stat.st_dev = 0;
+ if (!(toys.optflags & FLAG_a)) mt3->stat.st_dev = 0;
mt3 = mt2;
} else mt2->stat.st_dev = 0;
}