summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-21 12:10:02 +0000
committerJim Meyering <jim@meyering.net>2002-06-21 12:10:02 +0000
commit071b36fd9068a202a0e55910e02cc0410df21d0b (patch)
treee06ae60d4b97fc4eab4cb2500c8c5f4ac3fa0f33 /src/cp.c
parentd7313803f0c137a83787ea1166c30f9bf84de1d1 (diff)
downloadcoreutils-071b36fd9068a202a0e55910e02cc0410df21d0b.tar.xz
Change all `preserving ...' diagnostics to
`failed to preserve ...' to make the failure clearer.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cp.c b/src/cp.c
index 4440a983e..41fe2b247 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -322,7 +322,8 @@ re_protect (const char *const_dst_path, int src_offset,
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;
}
}
@@ -335,7 +336,7 @@ re_protect (const char *const_dst_path, int src_offset,
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;
}
@@ -345,7 +346,7 @@ re_protect (const char *const_dst_path, int src_offset,
{
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;
}