[Toybox] [PATCH] cp - typo
Sameer Pradhan
sameer.p.pradhan at gmail.com
Fri Jul 17 01:17:12 PDT 2015
HI Rob & List,
I missed to mention the error messages for _preserve_ option of cp.
Every time we are getting the below error message while running __cp__ with
_preserve_ option.
a$ touch file1
/a$ ./toybox cp --preserve=timestamps file1 file2
cp: bad --preserve=timestamps
sameer at samsung-desktop:~/suprem/a$ ./toybox cp --preserve = timestamps
file1 file2
cp: 'file2' not directory
sameer at samsung-desktop:~/suprem/a$ ./toybox cp --preserve=ownership file1
file2
cp: bad --preserve=ownership
sameer at samsung-desktop:~/suprem/a$ ./toybox cp --preserve=mode file1 file2
cp: bad --preserve=mode
sameer at samsung-desktop:~/suprem/a$ ./toybox cp --preserve=all file1 file2
cp: bad --preserve=all
Thanks & Regards,
Sameer Prakash Pradhan
On Fri, Jul 17, 2015 at 1:26 PM, Sameer Pradhan <sameer.p.pradhan at gmail.com>
wrote:
> 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
>
--
Thanks & Regards
Sameer Prakash Pradhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150717/4784f622/attachment-0002.htm>
More information about the Toybox
mailing list