]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Simply assign to bit_flags.
authorJim Meyering <jim@meyering.net>
Thu, 16 Oct 2003 07:51:57 +0000 (07:51 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 16 Oct 2003 07:51:57 +0000 (07:51 +0000)
Don't bother with bit arithmetic.

src/chgrp.c

index 4235fbd4103cecd506363138a43b7085c8fd70d6..dc731a26f6bc4a791044e5eaa3e745821d349b0c 100644 (file)
@@ -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 */