diff options
author | Jim Meyering <jim@meyering.net> | 2000-08-07 16:55:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-08-07 16:55:57 +0000 |
commit | 02edb50e8ffb94cb23d53060e655788d83ec285a (patch) | |
tree | 4b6b9bf92fd1b15aec53e651b2bd39c5ea8fa2b4 /lib | |
parent | 3190f18d1ce1dc7b5b41ad75baa8e0a84ca4de65 (diff) | |
download | coreutils-02edb50e8ffb94cb23d53060e655788d83ec285a.tar.xz |
(same_name): Invoke xalloc_die instead of printing our own message.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/same.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/same.c b/lib/same.c index dc28c7bda..beb75c44e 100644 --- a/lib/same.c +++ b/lib/same.c @@ -45,6 +45,7 @@ extern int errno; #include "same.h" #include "dirname.h" #include "error.h" +#include "xalloc.h" #if ENABLE_NLS # include <libintl.h> @@ -81,7 +82,7 @@ same_name (const char *source, const char *dest) source_dirname = dir_name (source); dest_dirname = dir_name (dest); if (source_dirname == NULL || dest_dirname == NULL) - error (1, 0, _("virtual memory exhausted")); + xalloc_die (); if (stat (source_dirname, &source_dir_stats)) { |