aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/touch
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit9ef5c48befdfa36ad5ef5e0ae898e7ca9397abcc (patch)
treeb5a6ada1388aeb7553694b736fde6dc7d114dbff /usr.bin/touch
parentadbaeacdd6ef7704c5427e2ed81c4364d91c6e07 (diff)
Notes
Diffstat (limited to 'usr.bin/touch')
-rw-r--r--usr.bin/touch/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index 30d367700ced..b56b05f4cd6c 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);