if ((*(x->xstat)) (src_path, &src_sb))
{
- error (0, errno, "%s", src_path);
+ error (0, errno, _("obtaining file attributes of %s"),
+ quote (src_path));
return 1;
}
if (utime (dst_path, &utb))
{
- error (0, errno, _("preserving times for %s"), dst_path);
+ error (0, errno, _("preserving times for %s"), quote (dst_path));
return 1;
}
}
if (chown (dst_path, src_sb.st_uid, src_sb.st_gid)
&& ((errno != EPERM && errno != EINVAL) || myeuid == 0))
{
- error (0, errno, _("preserving ownership for %s"), dst_path);
+ error (0, errno, _("preserving ownership for %s"),
+ quote (dst_path));
return 1;
}
}
{
if (chmod (dst_path, src_sb.st_mode & x->umask_kill))
{
- error (0, errno, _("preserving permissions for %s"), dst_path);
+ error (0, errno, _("preserving permissions for %s"),
+ quote (dst_path));
return 1;
}
}
{
if (errno != ENOENT)
{
- error (0, errno, "%s", dest);
+ error (0, errno, _("accessing %s"), quote (dest));
return 1;
}