From fc7f92253ae1c4f050e5ea2322b53b0e81bf96be Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 26 Jan 2007 23:00:05 +0000 Subject: find: fix -mtime, -mmin, -perm (+ add symbolic perm handling) chmod: better name for a variable --- coreutils/chmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils') diff --git a/coreutils/chmod.c b/coreutils/chmod.c index 990e9b4..f298d09 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 -- cgit v1.1