From 1899efe4f6ccf2f346cabcad52da9e6082f4e550 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Aug 2000 07:08:17 +0000 Subject: [PATCH] (copy_dir, copy_internal): Invoke xalloc_die instead of printing our own message. --- src/copy.c | 6 +++--- 1 file 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