diff options
Diffstat (limited to 'chmod.c')
-rw-r--r-- | chmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,12 +30,12 @@ | |||
30 | #include "busybox.h" | 30 | #include "busybox.h" |
31 | 31 | ||
32 | 32 | ||
33 | struct stat *theMode; | 33 | struct stat theMode; |
34 | 34 | ||
35 | 35 | ||
36 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) | 36 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) |
37 | { | 37 | { |
38 | if (chmod(fileName, theMode->st_mode) == 0) | 38 | if (chmod(fileName, theMode.st_mode) == 0) |
39 | return (TRUE); | 39 | return (TRUE); |
40 | perror(fileName); | 40 | perror(fileName); |
41 | return (FALSE); | 41 | return (FALSE); |
@@ -59,7 +59,7 @@ int chmod_main(int argc, char **argv) | |||
59 | 59 | ||
60 | if (argc > optind && argc > 2 && argv[optind]) { | 60 | if (argc > optind && argc > 2 && argv[optind]) { |
61 | /* Parse the specified mode */ | 61 | /* Parse the specified mode */ |
62 | if (parse_mode(argv[optind], &(theMode->st_mode)) == FALSE) { | 62 | if (parse_mode(argv[optind], &(theMode.st_mode)) == FALSE) { |
63 | error_msg_and_die( "unknown mode: %s", argv[optind]); | 63 | error_msg_and_die( "unknown mode: %s", argv[optind]); |
64 | } | 64 | } |
65 | } else { | 65 | } else { |