aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--locale/programs/locarchive.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 00cb5b5..15f716a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-28 Mike Frysinger <vapier@gentoo.org>
+
+ * locale/programs/locarchive.c (create_archive): Inlucde fname in
+ error message.
+ (enlarge_archive): Likewise.
+
2013-05-28 Ben North <ben@redfrontdoor.org>
* manual/arith.texi (frexp): It is the magnitude of the return
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
index d31472d..2f54489 100644
--- a/locale/programs/locarchive.c
+++ b/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;
@@ -345,7 +345,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;