diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-26 23:00:05 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-26 23:00:05 +0000 |
| commit | fc7f92253ae1c4f050e5ea2322b53b0e81bf96be (patch) | |
| tree | dc1023059186ea2b817a4b7859328b5f3625c9c6 /coreutils | |
| parent | 8b942c66395436c6dce3a280d8fa227c0453b9bc (diff) | |
| download | busybox-w32-fc7f92253ae1c4f050e5ea2322b53b0e81bf96be.tar.gz busybox-w32-fc7f92253ae1c4f050e5ea2322b53b0e81bf96be.tar.bz2 busybox-w32-fc7f92253ae1c4f050e5ea2322b53b0e81bf96be.zip | |
find: fix -mtime, -mmin, -perm (+ add symbolic perm handling)
chmod: better name for a variable
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/chmod.c | 6 |
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 | ||
| 34 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk, int depth) | 34 | static 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 |
