OSDN Git Service

Fix operator precedence error in df.
authorElliott Hughes <enh@google.com>
Fri, 3 Feb 2017 00:50:46 +0000 (16:50 -0800)
committerRob Landley <rob@landley.net>
Fri, 3 Feb 2017 23:15:32 +0000 (17:15 -0600)
toys/posix/df.c

index 3b6e6d4..fddc303 100644 (file)
@@ -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;
         }