diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/recursive_action.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 10 |
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 | } |