diff options
Diffstat (limited to 'usr.bin/touch')
-rw-r--r-- | usr.bin/touch/touch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c index 30d3677..b56b05f 100644 --- a/usr.bin/touch/touch.c +++ b/usr.bin/touch/touch.c @@ -129,7 +129,7 @@ main(argc, argv) for (rval = 0; *argv; ++argv) { /* See if the file exists. */ - if (stat(*argv, &sb)) + if (stat(*argv, &sb)) { if (!cflag) { /* Create the file. */ fd = open(*argv, @@ -145,6 +145,7 @@ main(argc, argv) continue; } else continue; + } if (!aflag) TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atimespec); |