find: fix handling of -prune
recursive_actions: uppercase flag constants
This commit is contained in:
@@ -92,8 +92,8 @@ int chown_main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (!recursive_action(arg,
|
||||
(OPT_RECURSE ? action_recurse : 0 | /* recurse */
|
||||
OPT_TRAVERSE ? action_followLinks : 0),/* follow links if -L */
|
||||
(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 */
|
||||
|
@@ -1079,7 +1079,7 @@ static char **get_dir(char *path)
|
||||
* add_to_dirlist then removes root dir prefix. */
|
||||
|
||||
if (option_mask32 & FLAG_r) {
|
||||
recursive_action(path, action_recurse|action_followLinks,
|
||||
recursive_action(path, ACTION_RECURSE|ACTION_FOLLOWLINKS,
|
||||
add_to_dirlist, NULL,
|
||||
(void*)(strlen(path)+1), 0);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user