aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chmod.c6
-rw-r--r--coreutils/chmod.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/chmod.c b/chmod.c
index 93b7f78cd..742770e90 100644
--- a/chmod.c
+++ b/chmod.c
@@ -30,12 +30,12 @@
#include "busybox.h"
-struct stat *theMode;
+struct stat theMode;
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
- if (chmod(fileName, theMode->st_mode) == 0)
+ if (chmod(fileName, theMode.st_mode) == 0)
return (TRUE);
perror(fileName);
return (FALSE);
@@ -59,7 +59,7 @@ int chmod_main(int argc, char **argv)
if (argc > optind && argc > 2 && argv[optind]) {
/* Parse the specified mode */
- if (parse_mode(argv[optind], &(theMode->st_mode)) == FALSE) {
+ if (parse_mode(argv[optind], &(theMode.st_mode)) == FALSE) {
error_msg_and_die( "unknown mode: %s", argv[optind]);
}
} else {
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index 93b7f78cd..742770e90 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -30,12 +30,12 @@
#include "busybox.h"
-struct stat *theMode;
+struct stat theMode;
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
- if (chmod(fileName, theMode->st_mode) == 0)
+ if (chmod(fileName, theMode.st_mode) == 0)
return (TRUE);
perror(fileName);
return (FALSE);
@@ -59,7 +59,7 @@ int chmod_main(int argc, char **argv)
if (argc > optind && argc > 2 && argv[optind]) {
/* Parse the specified mode */
- if (parse_mode(argv[optind], &(theMode->st_mode)) == FALSE) {
+ if (parse_mode(argv[optind], &(theMode.st_mode)) == FALSE) {
error_msg_and_die( "unknown mode: %s", argv[optind]);
}
} else {