]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(do_link): Invoke xalloc_die instead of printing our own message.
authorJim Meyering <jim@meyering.net>
Tue, 8 Aug 2000 07:11:46 +0000 (07:11 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Aug 2000 07:11:46 +0000 (07:11 +0000)
src/ln.c

index b9a954a336e8d375f01b9b3f479f5d00d934d6f0..e17c959043225d4ccf11ad00c8377a134a399274 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -262,7 +262,7 @@ do_link (const char *source, const char *dest)
        {
          char *tmp_backup = find_backup_file_name (dest, backup_type);
          if (tmp_backup == NULL)
-           error (1, 0, _("virtual memory exhausted"));
+           xalloc_die ();
          dest_backup = (char *) alloca (strlen (tmp_backup) + 1);
          strcpy (dest_backup, tmp_backup);
          free (tmp_backup);