summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-27 05:49:44 +0000
committerJim Meyering <jim@meyering.net>1997-02-27 05:49:44 +0000
commit94cab3643225cbbab8006635d4e5a0f0d9180c4b (patch)
treea09965fe61f6f7bdf49393fd3b6aa935ebe945ce /src
parente1b834211bf4fa0f3b4b49ccc51b5d12a3cac410 (diff)
downloadcoreutils-94cab3643225cbbab8006635d4e5a0f0d9180c4b.tar.xz
(re_protect): When there is any potential for ambiguity in a diagnostic,
give explanatory diagnostic in addition to file name.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cp.c b/src/cp.c
index a8668f770..027fe1625 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -241,7 +241,7 @@ re_protect (const char *const_dst_path, int src_offset,
if (utime (dst_path, &utb))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving times for %s"), dst_path);
return 1;
}
@@ -250,7 +250,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 || myeuid == 0))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving ownership for %s"), dst_path);
return 1;
}
}
@@ -259,7 +259,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, "%s", dst_path);
+ error (0, errno, _("preserving permissions for %s"), dst_path);
return 1;
}
}