Whamcloud - gitweb
This has a kernel patch for handle validation. All that is missing
[fs/lustre-release.git] / lustre / tests / tchmod.c
1 #include <sys/types.h>
2 #include <sys/stat.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5
6 int main(int argc, char **argv)
7 {
8         mode_t mode;
9
10         if (argc != 3) { 
11                 printf("usage: %s mode name\n", argv[0]);
12                 return 1;
13         }
14
15         mode = strtoul(argv[1], NULL, 8); 
16         return chmod(argv[2], mode);
17 }