summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-27 05:49:01 +0000
committerJim Meyering <jim@meyering.net>1997-02-27 05:49:01 +0000
commite1b834211bf4fa0f3b4b49ccc51b5d12a3cac410 (patch)
tree2c762b39a52dadacf94b5fdfe08ad0c1068a49da /src
parenta0400ec19b82783adaa7de7e1e498ca0686db177 (diff)
downloadcoreutils-e1b834211bf4fa0f3b4b49ccc51b5d12a3cac410.tar.xz
(copy_internal): 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/copy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/copy.c b/src/copy.c
index 958be9e4d..14e488d69 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -633,7 +633,7 @@ copy_internal (const char *src_path, const char *dst_path,
#ifdef HAVE_LCHOWN
if (DO_CHOWN (lchown, dst_path, src_sb.st_uid, src_sb.st_gid))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving ownership for %s"), dst_path);
goto un_backup;
}
#else
@@ -642,7 +642,7 @@ copy_internal (const char *src_path, const char *dst_path,
{
if (DO_CHOWN (chown, dst_path, src_sb.st_uid, src_sb.st_gid))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving ownership for %s"), dst_path);
goto un_backup;
}
}
@@ -682,13 +682,13 @@ copy_internal (const char *src_path, const char *dst_path,
if (utime (dst_path, &utb))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving times for %s"), dst_path);
return 1;
}
if (DO_CHOWN (chown, dst_path, src_sb.st_uid, src_sb.st_gid))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving ownership for %s"), dst_path);
return 1;
}
}
@@ -698,7 +698,7 @@ copy_internal (const char *src_path, const char *dst_path,
{
if (chmod (dst_path, src_mode & x->umask_kill))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("preserving permissions for %s"), dst_path);
return 1;
}
}
@@ -707,7 +707,7 @@ copy_internal (const char *src_path, const char *dst_path,
/* Reset the temporarily changed mode. */
if (chmod (dst_path, dst_sb.st_mode))
{
- error (0, errno, "%s", dst_path);
+ error (0, errno, _("restoring permissions of %s"), dst_path);
return 1;
}
}