---
 toys/posix/df.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From acbb3093f79d3aa268459d4ee15428429e3f6fb4 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Thu, 2 Feb 2017 16:50:46 -0800
Subject: [PATCH] Fix operator precedence error in df.

---
 toys/posix/df.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/df.c b/toys/posix/df.c
index 3b6e6d4..fddc303 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;
         }
-- 
2.11.0.483.g087da7b7c-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to