From 430efd137f2f59f536a2d7c8d287c4c897e6487e Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 18 Jul 2004 21:39:55 +0000 Subject: [PATCH] don't create read-only files svn path=/trunk/; revision=10206 --- reactos/tools/rtouch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");