aboutsummaryrefslogtreecommitdiff
path: root/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'touch.c')
-rw-r--r--touch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/touch.c b/touch.c
index 7db6c6e33..5537fb63b 100644
--- a/touch.c
+++ b/touch.c
@@ -43,7 +43,6 @@ extern int touch_main(int argc, char **argv)
43 break; 43 break;
44 default: 44 default:
45 usage(touch_usage); 45 usage(touch_usage);
46 exit(FALSE);
47 } 46 }
48 } 47 }
49 } 48 }
@@ -57,7 +56,7 @@ extern int touch_main(int argc, char **argv)
57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 56 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
58 if (fd < 0) { 57 if (fd < 0) {
59 if (create == FALSE && errno == ENOENT) 58 if (create == FALSE && errno == ENOENT)
60 exit(TRUE); 59 return EXIT_SUCCESS;
61 else { 60 else {
62 fatalError("%s", strerror(errno)); 61 fatalError("%s", strerror(errno));
63 } 62 }
@@ -70,5 +69,5 @@ extern int touch_main(int argc, char **argv)
70 argv++; 69 argv++;
71 } 70 }
72 71
73 return(TRUE); 72 return EXIT_SUCCESS;
74} 73}