Hi Rob & List,

There is a typo in cp.c for __preserve__ option.

--- a/toys/posix/cp.c   2015-07-17 13:03:28.000000000 +0530
+++ b/toys/posix/cp.c   2015-07-17 13:06:48.000000000 +0530
@@ -355,7 +355,7 @@
         }
       }
-      if (*s) error_exit("bad --preserve=%s", pre);
+      if (!*s) error_exit("bad --preserve=%s", pre);
     }
     free(pre);
   }


-- 
Thanks & Regards
Sameer Prakash Pradhan

Attachment: cp.c.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to