Commit in reactos/tools on MAIN
rtouch.c+2-21.7 -> 1.8
don't create read-only files

reactos/tools
rtouch.c 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- rtouch.c	19 Nov 2003 05:43:14 -0000	1.7
+++ rtouch.c	18 Jul 2004 21:39:55 -0000	1.8
@@ -60,10 +60,10 @@
     }
 
   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");
CVSspam 0.2.8