From 4f3c968b0c299b3920cb45b3760d638a4766d064 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 29 Apr 2008 20:32:24 +0000 Subject: [PATCH] - print error when mktemp failed due tmpdir not existent Changed files: rpm-mktemperror.patch -> 1.1.2.1 --- rpm-mktemperror.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rpm-mktemperror.patch diff --git a/rpm-mktemperror.patch b/rpm-mktemperror.patch new file mode 100644 index 0000000..dd535b4 --- /dev/null +++ b/rpm-mktemperror.patch @@ -0,0 +1,14 @@ +--- rpm-4.4.9/lib/misc.c~ 2007-01-21 19:33:05.000000000 +0200 ++++ rpm-4.4.9/lib/misc.c 2008-04-29 23:27:33.808321000 +0300 +@@ -176,8 +176,10 @@ + /* XXX FIXME: errno may not be correct for ufdio */ + } while ((fd == NULL || Ferror(fd)) && errno == EEXIST); + +- if (fd == NULL || Ferror(fd)) ++ if (fd == NULL || Ferror(fd)) { ++ rpmError(RPMERR_SCRIPT, _("error creating temporary file %s\n"), tempfn); + goto errxit; ++ } + + switch(temput) { + case URL_IS_PATH: -- 2.44.0