Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Dump debug log at cleanup time, in case of errors.
[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
}