summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/utility.c b/utility.c
index 97c597e..59ac361 100644
--- a/utility.c
+++ b/utility.c
@@ -415,8 +415,12 @@ recursiveAction(const char *fileName, int recurse, int followLinks, int depthFir
return (FALSE);
}
- if ( (followLinks == FALSE) && (S_ISLNK(statbuf.st_mode)) )
- return (TRUE);
+ if ( (followLinks == FALSE) && (S_ISLNK(statbuf.st_mode)) ) {
+ if (fileAction == NULL)
+ return (TRUE);
+ else
+ return (fileAction(fileName, &statbuf));
+ }
if (recurse == FALSE) {
if (S_ISDIR(statbuf.st_mode)) {