diff --git a/reactos/tools/rtouch.c b/reactos/tools/rtouch.c index 45a2c3dfc34..0105803a689 100755 --- a/reactos/tools/rtouch.c +++ b/reactos/tools/rtouch.c @@ -60,10 +60,10 @@ int main(int argc, char* argv[]) } path = convert_path(argv[1]); - id = open(path, S_IWRITE); + id = open(path, S_IWRITE, S_IRUSR | S_IWUSR); if (id < 0) { - id = open(path, S_IWRITE | O_CREAT); + id = open(path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); if (id < 0) { fprintf(stderr, "Cannot create file.\n");