]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- print error when mktemp failed due tmpdir not existent
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 29 Apr 2008 20:32:24 +0000 (20:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-mktemperror.patch -> 1.1.2.1

rpm-mktemperror.patch [new file with mode: 0644]

diff --git a/rpm-mktemperror.patch b/rpm-mktemperror.patch
new file mode 100644 (file)
index 0000000..dd535b4
--- /dev/null
@@ -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:
This page took 0.047411 seconds and 4 git commands to generate.