diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-29 10:30:50 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-29 10:30:50 +0000 |
commit | 3e816c1252cc55e3763f946622129d31ea1f0f20 (patch) | |
tree | 5031fd816b1df09eaa897530a37ce814bba95011 /coreutils/chown.c | |
parent | 3d43edb28c80ee9cb54335f593d42d5d0471e15a (diff) | |
download | busybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.tar.gz busybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.tar.bz2 busybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.zip |
- fold recurse, depthFirst and dereference params into one param flags.
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r-- | coreutils/chown.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index f92299e36..09b1a595b 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -92,13 +92,12 @@ int chown_main(int argc, char **argv) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | if (!recursive_action(arg, | 94 | if (!recursive_action(arg, |
95 | OPT_RECURSE, // recurse | 95 | (OPT_RECURSE ? action_recurse : 0 | /* recurse */ |
96 | OPT_TRAVERSE, // follow links if -L | 96 | OPT_TRAVERSE ? action_followLinks : 0),/* follow links if -L */ |
97 | FALSE, // depth first | 97 | fileAction, /* file action */ |
98 | fileAction, // file action | 98 | fileAction, /* dir action */ |
99 | fileAction, // dir action | 99 | chown_func, /* user data */ |
100 | chown_func, // user data | 100 | 0) /* depth */ |
101 | 0) // depth | ||
102 | ) { | 101 | ) { |
103 | retval = EXIT_FAILURE; | 102 | retval = EXIT_FAILURE; |
104 | } | 103 | } |