OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4594c
)
Fix operator precedence error in df.
author
Elliott Hughes
<enh@google.com>
Fri, 3 Feb 2017 00:50:46 +0000
(16:50 -0800)
committer
Rob Landley
<rob@landley.net>
Fri, 3 Feb 2017 23:15:32 +0000
(17:15 -0600)
toys/posix/df.c
patch
|
blob
|
history
diff --git
a/toys/posix/df.c
b/toys/posix/df.c
index
3b6e6d4
..
fddc303
100644
(file)
--- 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;
}