diff options
-rw-r--r-- | src/cmd/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/touch.c b/src/cmd/touch.c index 471e2b17..26141815 100644 --- a/src/cmd/touch.c +++ b/src/cmd/touch.c @@ -54,7 +54,7 @@ touch(int nocreate, char *name) fprint(2, "touch: %s: cannot wstat: %r\n", name); return 1; } - if((fd = create(name, OREAD, 0666)) < 0) { + if((fd = create(name, OWRITE, 0666)) < 0) { fprint(2, "touch: %s: cannot create: %r\n", name); return 1; } |