aboutsummaryrefslogtreecommitdiff
path: root/libbb/recursive_action.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-11-29 10:12:11 +0000
committerRon Yorston <rmy@pobox.com>2012-11-29 10:12:11 +0000
commit45c0070a259132f13424ba2ff42ea523c4fd318a (patch)
treedc1b443f039a47eb27c80690346ccc7dce10dcd1 /libbb/recursive_action.c
parent0528a8658d7237f4bac0d853db51028036f6a650 (diff)
downloadbusybox-w32-45c0070a259132f13424ba2ff42ea523c4fd318a.tar.gz
busybox-w32-45c0070a259132f13424ba2ff42ea523c4fd318a.tar.bz2
busybox-w32-45c0070a259132f13424ba2ff42ea523c4fd318a.zip
Ensure mingw_stat is called when necessary
In some cases a funtion pointer to the stat function is used. The preprocessor can't replace these with the mingw_stat, so make alternative arrangements in those cases.
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r--libbb/recursive_action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index b5cf7c0ab..7ec3a1443 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 : lstat)(fileName, &statbuf); 76 status = follow ? stat(fileName, &statbuf) : 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);