--- a/toys/posix/touch.c	2014-09-19 04:37:58.000000000 +0530
+++ b/toys/posix/touch.c	2014-09-19 10:49:35.846183235 +0530
@@ -18,7 +18,7 @@
     -m	change modification time
     -c	don't create file
     -d	set time to DATE (in YYYY-MM-DDThh:mm:SS[.frac][tz] format)
-    -t	set time to TIME (in [[CC]YY]MMDDhhmm[.ss][frac] format)
+    -t	set time to TIME (in [[CC]YY]MMDDhhmm[.ss] format)
     -r	set time same as reference FILE
 */
 
@@ -36,7 +36,7 @@
 {
   struct stat st;
 
-  if (stat(TT.file, &st)) return 1;
+  if (stat(file, &st)) return 1;
 
   if (flags & FLAG_a) {
     tv[0].tv_sec = st.st_atime;
@@ -86,17 +86,15 @@
     } else {
       strcpy(toybuf, "%Y%m%d%H%M");
       date = TT.time;
+      i = ((s = strchr(date, '.'))) ? s-date : strlen(date);
+      if (i < 8 || i%2) error_exit("bad '%s'", date);
       for (i=0;i<3;i++) {
         s = strptime(date, toybuf+(i&2), &tm);
         if (s) break;
         toybuf[1]='y';
       }
-      if (s && *s=='.') {
-        int count = sscanf(s, ".%2d%u%n", &(tm.tm_sec), &i, &len);
-
-        if (count==2) tv->tv_usec = i;
+      if (s && *s=='.' && sscanf(s, ".%2u%n", &(tm.tm_sec), &len) == 1) 
         s += len;
-      }
     }
 
     errno = 0;
@@ -119,7 +117,7 @@
     if ((flag == (FLAG_m|FLAG_a) || !fetch(*ss, tv, flag)) && !utimes(*ss, tv))
       ss++;
     else if (toys.optflags & FLAG_c) ss++;
-    else if (-1 != (fd = open(*ss, O_CREAT, 0666))) close(fd);
+    else if (access(*ss, F_OK) && (-1 != (fd = open(*ss, O_CREAT, 0666)))) close(fd);
     else perror_msg("'%s'", *ss++);
   }
 }
