summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-05 05:11:41 +0000
committerMatt Kraai2000-12-05 05:11:41 +0000
commitd27753afd983ffeae45b80dee92f02d0518ca7bf (patch)
tree1ecefa6dc73279cfe4ae3a45cc647823094248f0 /utility.c
parent0e836ed8db86ef0274510c27e173f7ac66c6b2a6 (diff)
downloadbusybox-d27753afd983ffeae45b80dee92f02d0518ca7bf.zip
busybox-d27753afd983ffeae45b80dee92f02d0518ca7bf.tar.gz
Use perrorMsg instead of perror and keep removing files if we encounter
an error.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/utility.c b/utility.c
index 9ae2a8f..7c41ab8 100644
--- a/utility.c
+++ b/utility.c
@@ -641,7 +641,7 @@ int recursiveAction(const char *fileName,
"status=%d followLinks=%d TRUE=%d\n",
status, followLinks, TRUE);
#endif
- perror(fileName);
+ perrorMsg("%s", fileName);
return FALSE;
}
@@ -666,13 +666,13 @@ int recursiveAction(const char *fileName,
dir = opendir(fileName);
if (!dir) {
- perror(fileName);
+ perrorMsg("%s", fileName);
return FALSE;
}
if (dirAction != NULL && depthFirst == FALSE) {
status = dirAction(fileName, &statbuf, userData);
if (status == FALSE) {
- perror(fileName);
+ perrorMsg("%s", fileName);
return FALSE;
}
}
@@ -699,13 +699,13 @@ int recursiveAction(const char *fileName,
}
status = closedir(dir);
if (status < 0) {
- perror(fileName);
+ perrorMsg("%s", fileName);
return FALSE;
}
if (dirAction != NULL && depthFirst == TRUE) {
status = dirAction(fileName, &statbuf, userData);
if (status == FALSE) {
- perror(fileName);
+ perrorMsg("%s", fileName);
return FALSE;
}
}