diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-09 01:47:36 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-09 01:47:36 +0000 |
commit | 96a388f135a05d099b01a8473c927b4db77a1489 (patch) | |
tree | 81d4cfe9ec9b5281924f678c28f61542616a3db7 /utility.c | |
parent | 11db1ae1cfedd521f0642378589e1743fdb07f10 (diff) | |
download | busybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.tar.gz busybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.tar.bz2 busybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.zip |
Stuff
git-svn-id: svn://busybox.net/trunk/busybox@87 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | utility.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -415,8 +415,12 @@ recursiveAction(const char *fileName, int recurse, int followLinks, int depthFir | |||
415 | return (FALSE); | 415 | return (FALSE); |
416 | } | 416 | } |
417 | 417 | ||
418 | if ( (followLinks == FALSE) && (S_ISLNK(statbuf.st_mode)) ) | 418 | if ( (followLinks == FALSE) && (S_ISLNK(statbuf.st_mode)) ) { |
419 | return (TRUE); | 419 | if (fileAction == NULL) |
420 | return (TRUE); | ||
421 | else | ||
422 | return (fileAction(fileName, &statbuf)); | ||
423 | } | ||
420 | 424 | ||
421 | if (recurse == FALSE) { | 425 | if (recurse == FALSE) { |
422 | if (S_ISDIR(statbuf.st_mode)) { | 426 | if (S_ISDIR(statbuf.st_mode)) { |