- fold recurse, depthFirst and dereference params into one param flags.

Minor size improvement (-16b for size, -24b according to bloat-o-meter).
This commit is contained in:
Bernhard Reutner-Fischer
2007-03-29 10:30:50 +00:00
parent 3d43edb28c
commit 3e816c1252
11 changed files with 50 additions and 55 deletions

View File

@@ -562,8 +562,9 @@ 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, TRUE, dereferenceFlag,
FALSE, writeFileToTarball, writeFileToTarball, &tbInfo, 0))
if (!recursive_action(include->data, (action_recurse |
dereferenceFlag ? action_followLinks : 0),
writeFileToTarball, writeFileToTarball, &tbInfo, 0))
{
errorFlag = TRUE;
}