Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-09 04:47:36 +0300
committerEric Andersen <andersen@codepoet.org>1999-11-09 04:47:36 +0300
commit50d6360771be509737bb55b2cc5bc5e25f2a4fea (patch)
tree81d4cfe9ec9b5281924f678c28f61542616a3db7 /utility.c
parentfbb39c83b69d6c4de943c0b7374000339635d13d (diff)
Stuff
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 97c597ee6..59ac36197 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)) {