aboutsummaryrefslogtreecommitdiff
path: root/libbb/recursive_action.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/recursive_action.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r--libbb/recursive_action.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index 8f9cc2f91..a4a4a7be3 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -60,10 +60,10 @@ int recursive_action(const char *fileName,
60 60
61 if (status < 0) { 61 if (status < 0) {
62#ifdef DEBUG_RECURS_ACTION 62#ifdef DEBUG_RECURS_ACTION
63 error_msg("status=%d followLinks=%d TRUE=%d", 63 bb_error_msg("status=%d followLinks=%d TRUE=%d",
64 status, followLinks, TRUE); 64 status, followLinks, TRUE);
65#endif 65#endif
66 perror_msg("%s", fileName); 66 bb_perror_msg("%s", fileName);
67 return FALSE; 67 return FALSE;
68 } 68 }
69 69
@@ -89,14 +89,14 @@ int recursive_action(const char *fileName,
89 if (dirAction != NULL && ! depthFirst) { 89 if (dirAction != NULL && ! depthFirst) {
90 status = dirAction(fileName, &statbuf, userData); 90 status = dirAction(fileName, &statbuf, userData);
91 if (! status) { 91 if (! status) {
92 perror_msg("%s", fileName); 92 bb_perror_msg("%s", fileName);
93 return FALSE; 93 return FALSE;
94 } else if (status == SKIP) 94 } else if (status == SKIP)
95 return TRUE; 95 return TRUE;
96 } 96 }
97 dir = opendir(fileName); 97 dir = opendir(fileName);
98 if (!dir) { 98 if (!dir) {
99 perror_msg("%s", fileName); 99 bb_perror_msg("%s", fileName);
100 return FALSE; 100 return FALSE;
101 } 101 }
102 status = TRUE; 102 status = TRUE;
@@ -117,7 +117,7 @@ int recursive_action(const char *fileName,
117 closedir(dir); 117 closedir(dir);
118 if (dirAction != NULL && depthFirst) { 118 if (dirAction != NULL && depthFirst) {
119 if (! dirAction(fileName, &statbuf, userData)) { 119 if (! dirAction(fileName, &statbuf, userData)) {
120 perror_msg("%s", fileName); 120 bb_perror_msg("%s", fileName);
121 return FALSE; 121 return FALSE;
122 } 122 }
123 } 123 }