diff options
author | Zheng, Lei <zhenglei@pmail.ntu.edu.sg> | 2011-11-20 16:46:31 +0800 |
---|---|---|
committer | Zheng, Lei <zhenglei@pmail.ntu.edu.sg> | 2011-11-20 16:46:31 +0800 |
commit | 681755bcf5506109375e6fb9fc777461a704cf36 (patch) | |
tree | 77c0c3c05448cde4d64c0f743d252c7db3ccc9da /libbb/recursive_action.c | |
parent | 846ac8422390ed9aa1f572a6089f2a7fc41f4aed (diff) | |
download | busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.tar.gz busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.tar.bz2 busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.zip |
Added missing stat() tweaks for mingw port
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index b5cf7c0ab..560c93cad 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c | |||
@@ -73,7 +73,12 @@ 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 | #if ENABLE_PLATFORM_MINGW32 | ||
77 | /* stat can't be aliased, and MinGW uses lstat anyway */ | ||
78 | status = lstat(fileName, &statbuf); | ||
79 | #else | ||
76 | status = (follow ? stat : lstat)(fileName, &statbuf); | 80 | status = (follow ? stat : lstat)(fileName, &statbuf); |
81 | #endif | ||
77 | if (status < 0) { | 82 | if (status < 0) { |
78 | #ifdef DEBUG_RECURS_ACTION | 83 | #ifdef DEBUG_RECURS_ACTION |
79 | bb_error_msg("status=%d flags=%x", status, flags); | 84 | bb_error_msg("status=%d flags=%x", status, flags); |