find: fix handling of -prune

recursive_actions: uppercase flag constants
This commit is contained in:
Denis Vlasenko
2007-04-08 10:52:28 +00:00
parent ca3484103e
commit bbd695d801
9 changed files with 71 additions and 59 deletions

View File

@@ -562,8 +562,8 @@ static int writeTarFile(const int tar_fd, const int verboseFlag,
/* Read the directory/files and iterate over them one at a time */
while (include) {
if (!recursive_action(include->data, (action_recurse |
dereferenceFlag ? action_followLinks : 0),
if (!recursive_action(include->data, ACTION_RECURSE |
(dereferenceFlag ? ACTION_FOLLOWLINKS : 0),
writeFileToTarball, writeFileToTarball, &tbInfo, 0))
{
errorFlag = TRUE;