diff options
author | Ron Yorston <rmy@pobox.com> | 2014-01-07 14:43:08 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-01-07 14:43:08 +0000 |
commit | 94150aba92d308e417aa552a1b3a957be264b423 (patch) | |
tree | d9b570e2641188c68917e85d7cb387fe0bbfbecc /libbb/recursive_action.c | |
parent | 63b71e4a6f8c65a4bef7617efb50a2b473e388b3 (diff) | |
download | busybox-w32-94150aba92d308e417aa552a1b3a957be264b423.tar.gz busybox-w32-94150aba92d308e417aa552a1b3a957be264b423.tar.bz2 busybox-w32-94150aba92d308e417aa552a1b3a957be264b423.zip |
Revise mingw_stat to minimise changes from upstream BusyBox
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index 7ec3a1443..b5cf7c0ab 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c | |||
@@ -73,7 +73,7 @@ int FAST_FUNC recursive_action(const char *fileName, | |||
73 | if (depth == 0) | 73 | if (depth == 0) |
74 | follow = ACTION_FOLLOWLINKS | ACTION_FOLLOWLINKS_L0; | 74 | follow = ACTION_FOLLOWLINKS | ACTION_FOLLOWLINKS_L0; |
75 | follow &= flags; | 75 | follow &= flags; |
76 | status = follow ? stat(fileName, &statbuf) : lstat(fileName, &statbuf); | 76 | status = (follow ? stat : lstat)(fileName, &statbuf); |
77 | if (status < 0) { | 77 | if (status < 0) { |
78 | #ifdef DEBUG_RECURS_ACTION | 78 | #ifdef DEBUG_RECURS_ACTION |
79 | bb_error_msg("status=%d flags=%x", status, flags); | 79 | bb_error_msg("status=%d flags=%x", status, flags); |