This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-746-g0e60d68
- From: vapier at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 28 May 2013 22:02:42 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-746-g0e60d68
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 0e60d68ef0f755bfd2319937774b8a08f79ca7f1 (commit)
from 56b672e92e10ac2931236dba4e452699fd0d32d1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0e60d68ef0f755bfd2319937774b8a08f79ca7f1
commit 0e60d68ef0f755bfd2319937774b8a08f79ca7f1
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat May 25 14:38:38 2013 -0400
localedef: include file name in error messages
When mkstemp fails, the error message the user gets back is:
cannot create temporary file: No such file or directory
That isn't terribly useful in figuring out why, so include the full
filename we tried to create in the error output.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
locale/programs/locarchive.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources