aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-20 21:32:38 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-20 21:32:38 +0000
commit68518bebf9ae94b51427fcf53c34beed69509b6c (patch)
tree4e67cd1046f7a881dfcfdd7b5c64300b00d4c97c
parentab94ffcd57ec86e09a32d96ddb2b193bf94331e9 (diff)
downloadbusybox-w32-68518bebf9ae94b51427fcf53c34beed69509b6c.tar.gz
busybox-w32-68518bebf9ae94b51427fcf53c34beed69509b6c.tar.bz2
busybox-w32-68518bebf9ae94b51427fcf53c34beed69509b6c.zip
- small size tweak
git-svn-id: svn://busybox.net/trunk/busybox@17420 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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. */