aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-26 23:00:05 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-26 23:00:05 +0000
commit0c101e0a9286e0dea731c5af42dbc5413f5216cf (patch)
treedc1023059186ea2b817a4b7859328b5f3625c9c6 /coreutils
parent68ddbb28af211fd9adaddd283d2fde7b07e73a5d (diff)
downloadbusybox-w32-0c101e0a9286e0dea731c5af42dbc5413f5216cf.tar.gz
busybox-w32-0c101e0a9286e0dea731c5af42dbc5413f5216cf.tar.bz2
busybox-w32-0c101e0a9286e0dea731c5af42dbc5413f5216cf.zip
find: fix -mtime, -mmin, -perm (+ add symbolic perm handling)
chmod: better name for a variable git-svn-id: svn://busybox.net/trunk/busybox@17544 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 @@
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