summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-26 15:44:01 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2015-12-26 15:45:01 +0100
commit5b210085cf66ef70ac8e1ca765e0f2e24fc38406 (patch)
treef3c083ddc4752f76c4a47f274bff23758990e7c6
parentefa0b1ea982261861d64f6d6d620af83d82b02d3 (diff)
downloadattr-5b210085cf66ef70ac8e1ca765e0f2e24fc38406.tar.gz
walk_tree_rec: Add parentheses to clarify code
Make the conditional easier to read. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--libmisc/walk_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c
index d753dc7..0a6af1e 100644
--- a/libmisc/walk_tree.c
+++ b/libmisc/walk_tree.c
@@ -102,8 +102,8 @@ static int walk_tree_rec(const char *path, int walk_flags,
* a link and follow_symlinks
*/
if ((flags & WALK_TREE_RECURSIVE) &&
- (!(flags & WALK_TREE_SYMLINK) && S_ISDIR(st.st_mode)) ||
- ((flags & WALK_TREE_SYMLINK) && follow_symlinks)) {
+ ((!(flags & WALK_TREE_SYMLINK) && S_ISDIR(st.st_mode)) ||
+ ((flags & WALK_TREE_SYMLINK) && follow_symlinks))) {
struct dirent *entry;
/*