30 lines
911 B
Diff
30 lines
911 B
Diff
|
From a69522533248093c11f11f964a3d42cb08bf7822 Mon Sep 17 00:00:00 2001
|
||
|
From: Jan Kolarik <jkolarik@redhat.com>
|
||
|
Date: Mon, 22 Aug 2022 08:18:04 +0200
|
||
|
Subject: [PATCH] Detailed error message when using non-existing TMPDIR
|
||
|
(RhBug:2019993)
|
||
|
|
||
|
= changelog =
|
||
|
type: bugfix
|
||
|
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2019993
|
||
|
---
|
||
|
librepo/util.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/librepo/util.c b/librepo/util.c
|
||
|
index 204572d..f4aa512 100644
|
||
|
--- a/librepo/util.c
|
||
|
+++ b/librepo/util.c
|
||
|
@@ -158,7 +158,7 @@ lr_gettmpfile(void)
|
||
|
template = g_build_filename(g_get_tmp_dir(), "librepo-tmp-XXXXXX", NULL);
|
||
|
fd = mkstemp(template);
|
||
|
if (fd < 0) {
|
||
|
- perror("Cannot create temporary file - mkstemp");
|
||
|
+ fprintf(stderr, "Cannot create temporary file - mkstemp '%s': %s\n", template, strerror(errno));
|
||
|
exit(1);
|
||
|
}
|
||
|
unlink(template);
|
||
|
--
|
||
|
2.37.1
|
||
|
|