- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / coreutils / chown.c
index f92299e362acfdf717f6f0985f2fec4d01c64a52..e64a39c3e8ce6f9dc1c8a8610cd817fbfc14ecc2 100644 (file)
@@ -92,13 +92,12 @@ int chown_main(int argc, char **argv)
                }
 
                if (!recursive_action(arg,
-                               OPT_RECURSE,    // recurse
-                               OPT_TRAVERSE,   // follow links if -L
-                               FALSE,          // depth first
-                               fileAction,     // file action
-                               fileAction,     // dir action
-                               chown_func,     // user data
-                               0)              // depth
+                               (OPT_RECURSE ? ACTION_RECURSE : 0) | /* recurse */
+                               (OPT_TRAVERSE ? ACTION_FOLLOWLINKS : 0),/* follow links if -L */
+                               fileAction,     /* file action */
+                               fileAction,     /* dir action */
+                               chown_func,     /* user data */
+                               0)              /* depth */
                ) {
                        retval = EXIT_FAILURE;
                }