mirror of
https://sourceware.org/git/glibc.git
synced 2024-09-20 00:19:57 +00:00
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>
This commit is contained in:
parent
56b672e92e
commit
0e60d68ef0
@ -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>
|
2013-05-28 Ben North <ben@redfrontdoor.org>
|
||||||
|
|
||||||
* manual/arith.texi (frexp): It is the magnitude of the return
|
* manual/arith.texi (frexp): It is the magnitude of the return
|
||||||
|
@ -111,7 +111,7 @@ create_archive (const char *archivefname, struct locarhandle *ah)
|
|||||||
/* Create a temporary file in the correct directory. */
|
/* Create a temporary file in the correct directory. */
|
||||||
fd = mkstemp (fname);
|
fd = mkstemp (fname);
|
||||||
if (fd == -1)
|
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. */
|
/* Create the initial content of the archive. */
|
||||||
head.magic = AR_MAGIC;
|
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. */
|
/* Create a temporary file in the correct directory. */
|
||||||
fd = mkstemp (fname);
|
fd = mkstemp (fname);
|
||||||
if (fd == -1)
|
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. */
|
/* Copy the existing head information. */
|
||||||
newhead = *head;
|
newhead = *head;
|
||||||
|
Loading…
Reference in New Issue
Block a user