summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-08 07:08:17 +0000
committerJim Meyering <jim@meyering.net>2000-08-08 07:08:17 +0000
commit1899efe4f6ccf2f346cabcad52da9e6082f4e550 (patch)
treeb6e365dfbea760761537bc0a6d02233dec27d737 /src
parent8180fd9209bcbb585952881c7fd04d2e322519c5 (diff)
downloadcoreutils-1899efe4f6ccf2f346cabcad52da9e6082f4e550.tar.xz
(copy_dir, copy_internal): Invoke xalloc_die instead of printing our own message.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c
index 59bd751b8..b72be03b4 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -132,7 +132,7 @@ copy_dir (const char *src_path_in, const char *dst_path_in, int new_dst,
char *dst_path = path_concat (dst_path_in, namep, NULL);
if (dst_path == NULL || src_path == NULL)
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
ret |= copy_internal (src_path, dst_path, new_dst, src_sb->st_dev,
ancestors, x, 0, &local_copy_into_self, NULL);
@@ -530,7 +530,7 @@ copy_internal (const char *src_path, const char *dst_path,
char *tmp_backup = find_backup_file_name (dst_path,
x->backup_type);
if (tmp_backup == NULL)
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
/* Detect (and fail) when creating the backup file would
destroy the source file. Before, running the commands
@@ -771,7 +771,7 @@ copy_internal (const char *src_path, const char *dst_path,
dst_parent = dir_name (dst_path);
if (dst_parent == NULL)
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
in_current_dir = (STREQ (".", dst_parent)
/* If either stat call fails, it's ok not to report