]> git.saurik.com Git - apt.git/commitdiff
merge segfault fix from Mario Sanchez Prada, many thanks
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 14 Dec 2009 16:45:51 +0000 (17:45 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 14 Dec 2009 16:45:51 +0000 (17:45 +0100)
(closes: #561109)

apt-pkg/deb/dpkgpm.cc
debian/changelog

index 6eb3b40acf7e5b862754f5ee65c2edc8262f1491..d1a275a4786551e807445b78dc51860f74d5e758 100644 (file)
@@ -879,7 +879,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
            const char *s = _("Can not write log, openpty() "
                              "failed (/dev/pts not mounted?)\n");
            fprintf(stderr, "%s",s);
-           fprintf(term_out, "%s",s);
+            if(term_out)
+              fprintf(term_out, "%s",s);
            master = slave = -1;
         }  else {
            struct termios rtt;
index cd4573468c405627a27a7dacc4cdac005083f6a8..c2a253484d7fa48340c10bc05b4ba590cade459c 100644 (file)
@@ -36,6 +36,8 @@ apt (0.7.25) UNRELEASED; urgency=low
     - add "purge" to list of known actions
   * apt-pkg/init.h:
     - add compatibility with old ABI name until the next ABI break
+  * merge segfault fix from Mario Sanchez Prada, many thanks
+    (closes: #561109)
 
   [ Brian Murray ]
   * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc: