From 029d5937c4b730f2380a729bf9abd67b41861906 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Oct 2003 07:51:57 +0000 Subject: [PATCH] (main): Simply assign to bit_flags. Don't bother with bit arithmetic. --- src/chgrp.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/chgrp.c b/src/chgrp.c index 4235fbd410..dc731a26f6 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -190,18 +190,15 @@ main (int argc, char **argv) break; case 'H': /* Traverse command-line symlinks-to-directories. */ - bit_flags |= FTS_COMFOLLOW; + bit_flags = FTS_COMFOLLOW; break; case 'L': /* Traverse all symlinks-to-directories. */ - bit_flags &= ~FTS_PHYSICAL; - bit_flags |= FTS_LOGICAL; + bit_flags = FTS_LOGICAL; break; case 'P': /* Traverse no symlinks-to-directories. */ - bit_flags |= FTS_PHYSICAL; - bit_flags &= ~FTS_LOGICAL; - bit_flags &= ~FTS_COMFOLLOW; + bit_flags = FTS_PHYSICAL; break; case 'h': /* --no-dereference: affect symlinks */ -- 2.47.2