aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-26 23:00:05 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-26 23:00:05 +0000
commitfc7f92253ae1c4f050e5ea2322b53b0e81bf96be (patch)
treedc1023059186ea2b817a4b7859328b5f3625c9c6 /coreutils
parent8b942c66395436c6dce3a280d8fa227c0453b9bc (diff)
downloadbusybox-fc7f92253ae1c4f050e5ea2322b53b0e81bf96be.tar.gz
busybox-fc7f92253ae1c4f050e5ea2322b53b0e81bf96be.tar.bz2
find: fix -mtime, -mmin, -perm (+ add symbolic perm handling)
chmod: better name for a variable
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/chmod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index 990e9b4ce..f298d0967 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -31,7 +31,7 @@
* symbolic links encountered during recursive directory traversals.
*/
-static int fileAction(const char *fileName, struct stat *statbuf, void* junk, int depth)
+static int fileAction(const char *fileName, struct stat *statbuf, void* param, int depth)
{
mode_t newmode;
@@ -46,8 +46,8 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk, in
}
newmode = statbuf->st_mode;
- if (!bb_parse_mode((char *)junk, &newmode))
- bb_error_msg_and_die("invalid mode: %s", (char *)junk);
+ if (!bb_parse_mode((char *)param, &newmode))
+ bb_error_msg_and_die("invalid mode: %s", (char *)param);
if (chmod(fileName, newmode) == 0) {
if (OPT_VERBOSE