coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My experience with using cp to copy a lot of files (432 millions, 3


From: Bernhard Voelker
Subject: Re: My experience with using cp to copy a lot of files (432 millions, 39 TB)
Date: Fri, 19 Sep 2014 21:37:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0

On 09/18/2014 12:57 PM, Pádraig Brady wrote:
> --- a/src/copy.c
> +++ b/src/copy.c
> @@ -2198,7 +2198,9 @@ copy_internal (char const *src_name, char const 
> *dst_name,
>                   There we just warn and return here.  */
>                return true;
>              }
> -          else if (x->dereference == DEREF_ALWAYS)
> +          else if (x->dereference == DEREF_ALWAYS
> +                   || (command_line_arg
> +                       && x->dereference == DEREF_COMMAND_LINE_ARGUMENTS))
>              {
>                /* This happens when e.g., encountering a directory for the
>                   second or subsequent time via symlinks when cp is invoked

The comment following the change should be augmented to mention -H, too:

               /* This happens when e.g., encountering a directory for the
                  second or subsequent time via symlinks when cp is invoked
-                 with -R and -L., or with -H.  E.g.,
+                 with -R and -L., or with -H.  E.g.,


Otherwise both patches look good to me.

Thanks & have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]