diff options
author | Jim Meyering <jim@meyering.net> | 2003-10-16 07:51:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-10-16 07:51:57 +0000 |
commit | 029d5937c4b730f2380a729bf9abd67b41861906 (patch) | |
tree | 88ce3c43b665a1410141e59f3d0ccb6617d4b0be /src | |
parent | 7997248101a2b08df5d077cc29b23f0608194e82 (diff) | |
download | coreutils-029d5937c4b730f2380a729bf9abd67b41861906.tar.xz |
(main): Simply assign to bit_flags.
Don't bother with bit arithmetic.
Diffstat (limited to 'src')
-rw-r--r-- | src/chgrp.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/chgrp.c b/src/chgrp.c index 4235fbd41..dc731a26f 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 */ |