aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/chmod.c')
-rw-r--r--toys/posix/chmod.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/toys/posix/chmod.c b/toys/posix/chmod.c
index 2a32db10..dcef9751 100644
--- a/toys/posix/chmod.c
+++ b/toys/posix/chmod.c
@@ -34,17 +34,13 @@ config CHMOD
chmod 744 file - user can read/write/execute, everyone else read only
*/
+#define FOR_chmod
#include "toys.h"
-DEFINE_GLOBALS(
+GLOBALS(
char *mode;
)
-#define TT this.chmod
-
-#define FLAG_R 1
-#define FLAG_v 2
-
int do_chmod(struct dirtree *try)
{
mode_t mode;