aboutsummaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r--coreutils/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 3e2e600f3..f1c6dc484 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -53,10 +53,10 @@ extern int touch_main(int argc, char **argv)
53 } 53 }
54 54
55 while (argc > 0) { 55 while (argc > 0) {
56 fd = open(*argv, (create == FALSE) ? O_RDWR : O_RDWR | O_CREAT, 56 fd = open(*argv, create ? O_RDWR | O_CREAT : O_RDWR,
57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
58 if (fd < 0) { 58 if (fd < 0) {
59 if (create == FALSE && errno == ENOENT) { 59 if (! create && errno == ENOENT) {
60 argc--; 60 argc--;
61 argv++; 61 argv++;
62 continue; 62 continue;