# if HAVE_LCHOWN
if (DO_CHOWN (lchown, dst_path, src_sb.st_uid, src_sb.st_gid))
{
- error (0, errno, _("preserving ownership for %s"), dst_path);
+ error (0, errno, _("failed to preserve ownership for %s"),
+ dst_path);
goto un_backup;
}
# else
ran_chown = 1;
if (DO_CHOWN (chown, dst_path, src_sb.st_uid, src_sb.st_gid))
{
- error (0, errno, _("preserving ownership for %s"), quote (dst_path));
+ error (0, errno, _("failed to preserve ownership for %s"),
+ quote (dst_path));
if (x->require_preserve)
return 1;
}
{
file_t file = getdport (dst_path);
if (file_chauthor (file, src_sb.st_author))
- error (0, errno, _("preserving authorship for %s"), quote (dst_path));
+ error (0, errno, _("failed to preserve authorship for %s"),
+ quote (dst_path));
mach_port_deallocate (mach_task_self (), file);
}
#endif
if (utime (dst_path, &utb))
{
- error (0, errno, _("preserving times for %s"), quote (dst_path));
+ error (0, errno, _("failed to preserve 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"),
+ error (0, errno, _("failed to preserve 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"),
+ error (0, errno, _("failed to preserve permissions for %s"),
quote (dst_path));
return 1;
}