2 * Copyright (c) 1993 by David I. Bell
3 * Permission is granted to use, distribute, or modify this source,
4 * provided that this copyright notice remains intact.
6 * Most simple built-in commands are here.
11 #include <sys/types.h>
31 mode = mode * 8 + (*cp++ - '0');
34 fprintf(stderr, "Mode must be octal\n");
41 if (chmod(argv[1], mode) < 0)