diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-27 05:49:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-27 05:49:44 +0000 |
commit | 94cab3643225cbbab8006635d4e5a0f0d9180c4b (patch) | |
tree | a09965fe61f6f7bdf49393fd3b6aa935ebe945ce /src | |
parent | e1b834211bf4fa0f3b4b49ccc51b5d12a3cac410 (diff) | |
download | coreutils-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |