summaryrefslogtreecommitdiff
path: root/libc/locale/programs/locarchive.c
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-06-04 15:48:26 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-06-04 15:48:26 +0000
commit8548b3be8c48bf62bd4e20fb0ee958338b01bc6c (patch)
tree874deff152fded2f5b50110ee6d488d42605bb01 /libc/locale/programs/locarchive.c
parenteab7f6089510455a9b26643c64da331749a15650 (diff)
downloadeglibc2-8548b3be8c48bf62bd4e20fb0ee958338b01bc6c.tar.gz
Merge changes between r23097 and r23217 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@23218 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/locale/programs/locarchive.c')
-rw-r--r--libc/locale/programs/locarchive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/locale/programs/locarchive.c b/libc/locale/programs/locarchive.c
index 1a8a69653..8475e295a 100644
--- a/libc/locale/programs/locarchive.c
+++ b/libc/locale/programs/locarchive.c
@@ -111,7 +111,7 @@ create_archive (const char *archivefname, struct locarhandle *ah)
/* Create a temporary file in the correct directory. */
fd = mkstemp (fname);
if (fd == -1)
- error (EXIT_FAILURE, errno, _("cannot create temporary file"));
+ error (EXIT_FAILURE, errno, _("cannot create temporary file: %s"), fname);
/* Create the initial content of the archive. */
head.magic = AR_MAGIC;
@@ -346,7 +346,7 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head)
/* Create a temporary file in the correct directory. */
fd = mkstemp (fname);
if (fd == -1)
- error (EXIT_FAILURE, errno, _("cannot create temporary file"));
+ error (EXIT_FAILURE, errno, _("cannot create temporary file: %s"), fname);
/* Copy the existing head information. */
newhead = *head;