projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for tar -z option for uncompressing only
[oweals/busybox.git]
/
rm.c
diff --git
a/rm.c
b/rm.c
index 5663351588ea5df39886ba1f25e3c8c01c8a0a5b..a9501ec7f004c23277b5c913c0657c5f1c8da1d2 100644
(file)
--- a/
rm.c
+++ b/
rm.c
@@
-37,7
+37,7
@@
static const char *srcName;
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (unlink(fileName) < 0) {
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (unlink(fileName) < 0) {
- perror
M
sg("%s", fileName);
+ perror
_m
sg("%s", fileName);
return (FALSE);
}
return (TRUE);
return (FALSE);
}
return (TRUE);
@@
-47,11
+47,11
@@
static int dirAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (recursiveFlag == FALSE) {
errno = EISDIR;
{
if (recursiveFlag == FALSE) {
errno = EISDIR;
- perror
M
sg("%s", fileName);
+ perror
_m
sg("%s", fileName);
return (FALSE);
}
if (rmdir(fileName) < 0) {
return (FALSE);
}
if (rmdir(fileName) < 0) {
- perror
M
sg("%s", fileName);
+ perror
_m
sg("%s", fileName);
return (FALSE);
}
return (TRUE);
return (FALSE);
}
return (TRUE);
@@
-101,7
+101,7
@@
extern int rm_main(int argc, char **argv)
&& errno == ENOENT) {
/* do not reports errors for non-existent files if -f, just skip them */
} else {
&& errno == ENOENT) {
/* do not reports errors for non-existent files if -f, just skip them */
} else {
- if (recursive
A
ction(srcName, recursiveFlag, FALSE,
+ if (recursive
_a
ction(srcName, recursiveFlag, FALSE,
TRUE, fileAction, dirAction, NULL) == FALSE) {
status = EXIT_FAILURE;
}
TRUE, fileAction, dirAction, NULL) == FALSE) {
status = EXIT_FAILURE;
}