(do_copy): Remove const attribute from declaration of parameter, x.
dest_info_init now takes a parameter.
static int
do_copy (int n_files, char **file, const char *target_directory,
- const struct cp_options *x)
+ struct cp_options *x)
{
const char *dest;
struct stat sb;
The problem it is used to detect can arise only if there are
two or more files to copy. */
if (n_files >= 2)
- dest_info_init ();
+ dest_info_init (x);
if (lstat (dest, &sb))
{
x->update = 0;
x->verbose = 0;
+ x->dest_info = NULL;
}
/* Given a string, ARG, containing a comma-separated list of arguments