TODO: Write an actual chmod implementation
This commit is contained in:
parent
af0f7cf575
commit
28bfaaac5d
10
userspace/tests/test-chmod.c
Normal file
10
userspace/tests/test-chmod.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
struct stat s;
|
||||
stat(argv[1], &s);
|
||||
chmod(argv[1], s.st_mode | S_IXUSR | S_IXGRP | S_IXOTH);
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user