<div>HI Rob & List,</div><div> </div><div>I missed to mention the error messages for _preserve_ option of cp.</div><div>Every time we are getting the below error message while running __cp__ with _preserve_ option.</div><div> </div><div>a$ touch file1</div><div>/a$ ./toybox cp --preserve=timestamps file1 file2<br>cp: bad --preserve=timestamps<br><a href="mailto:sameer@samsung-desktop:~/suprem/a$">sameer@samsung-desktop:~/suprem/a$</a> ./toybox cp --preserve = timestamps file1 file2<br>cp: 'file2' not directory<br><a href="mailto:sameer@samsung-desktop:~/suprem/a$">sameer@samsung-desktop:~/suprem/a$</a> ./toybox cp --preserve=ownership file1 file2<br>cp: bad --preserve=ownership<br><a href="mailto:sameer@samsung-desktop:~/suprem/a$">sameer@samsung-desktop:~/suprem/a$</a> ./toybox cp --preserve=mode file1 file2<br>cp: bad --preserve=mode<br><a href="mailto:sameer@samsung-desktop:~/suprem/a$">sameer@samsung-desktop:~/suprem/a$</a> ./toybox cp --preserve=all file1 file2<br>cp: bad --preserve=all<br></div><div>Thanks & Regards,</div><div>Sameer Prakash Pradhan<br></div><div class="gmail_quote">On Fri, Jul 17, 2015 at 1:26 PM, Sameer Pradhan <span dir="ltr"><<a href="mailto:sameer.p.pradhan@gmail.com" target="_blank">sameer.p.pradhan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>Hi Rob & List,</div><div> </div><div>There is a typo in cp.c for __preserve__ option.</div><div> </div><div>--- a/toys/posix/cp.c 2015-07-17 13:03:28.000000000 +0530<br>+++ b/toys/posix/cp.c 2015-07-17 13:06:48.000000000 +0530<br>@@ -355,7 +355,7 @@<br> }<br> }</div><div>- if (*s) error_exit("bad --preserve=%s", pre);<br>+ if (!*s) error_exit("bad --preserve=%s", pre);<br> }<br> free(pre);<br> }<span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Thanks & Regards<br>Sameer Prakash Pradhan</div>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Thanks & Regards<br>Sameer Prakash Pradhan</div>