aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-20 21:32:38 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-20 21:32:38 +0000
commitd19f4aaa21b9530f59f51465df18a376c7ba30e6 (patch)
tree4e67cd1046f7a881dfcfdd7b5c64300b00d4c97c
parent1118a1de46cdeb166f256374568f4bc21b5d7449 (diff)
downloadbusybox-w32-d19f4aaa21b9530f59f51465df18a376c7ba30e6.tar.gz
busybox-w32-d19f4aaa21b9530f59f51465df18a376c7ba30e6.tar.bz2
busybox-w32-d19f4aaa21b9530f59f51465df18a376c7ba30e6.zip
- small size tweak
-rw-r--r--coreutils/touch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c
index e1af7d0dc..72bf904f8 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -29,10 +29,8 @@
29int touch_main(int argc, char **argv) 29int touch_main(int argc, char **argv)
30{ 30{
31 int fd; 31 int fd;
32 int flags;
33 int status = EXIT_SUCCESS; 32 int status = EXIT_SUCCESS;
34 33 bool flags = (getopt32(argc, argv, "c") & 1);
35 flags = getopt32(argc, argv, "c");
36 34
37 argv += optind; 35 argv += optind;
38 36
@@ -43,7 +41,7 @@ int touch_main(int argc, char **argv)
43 do { 41 do {
44 if (utime(*argv, NULL)) { 42 if (utime(*argv, NULL)) {
45 if (errno == ENOENT) { /* no such file*/ 43 if (errno == ENOENT) { /* no such file*/
46 if (flags & 1) { /* Creation is disabled, so ignore. */ 44 if (flags) { /* Creation is disabled, so ignore. */
47 continue; 45 continue;
48 } 46 }
49 /* Try to create the file. */ 47 /* Try to create the file. */