aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/chmod.c')
-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 @@
31 * symbolic links encountered during recursive directory traversals. 31 * symbolic links encountered during recursive directory traversals.
32 */ 32 */
33 33
34static int fileAction(const char *fileName, struct stat *statbuf, void* junk, int depth) 34static int fileAction(const char *fileName, struct stat *statbuf, void* param, int depth)
35{ 35{
36 mode_t newmode; 36 mode_t newmode;
37 37
@@ -46,8 +46,8 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk, in
46 } 46 }
47 newmode = statbuf->st_mode; 47 newmode = statbuf->st_mode;
48 48
49 if (!bb_parse_mode((char *)junk, &newmode)) 49 if (!bb_parse_mode((char *)param, &newmode))
50 bb_error_msg_and_die("invalid mode: %s", (char *)junk); 50 bb_error_msg_and_die("invalid mode: %s", (char *)param);
51 51
52 if (chmod(fileName, newmode) == 0) { 52 if (chmod(fileName, newmode) == 0) {
53 if (OPT_VERBOSE 53 if (OPT_VERBOSE