chmod: Added chmod
[mutos-utils.git] / mkdir.c
blob2c69d97fc9748ebd1c54660c4dbb08b8a6dffcc6
1 /*
2 Copyright © 2013 Alastair Stuart
4 This program is open source software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
15 #include <sys/stat.h>
17 int main(int argc, char* argv[])
19 for (int i = 1; i < argc; i++)
21 mkdir(argv[i], S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
24 return 0;