diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:37:41 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:43:01 +0100 |
commit | 876b9da17f37102985f9493ba75ecaaa34429a83 (patch) | |
tree | efa45fe41fe2d3a6f9b6459d45e60074209346e8 /libmisc | |
parent | 1e8bf7924db1eb4ba16751e24f6f56c94db04bb9 (diff) | |
download | acl-876b9da17f37102985f9493ba75ecaaa34429a83.tar.gz |
walk_tree_rec: Add parentheses to clarify code
Make the conditional easier to read.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'libmisc')
-rw-r--r-- | libmisc/walk_tree.c | 4 |
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; /* |