]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error
authorDaniel Veillard <veillard@redhat.com>
Tue, 7 Oct 2008 16:01:23 +0000 (16:01 +0000)
committerDaniel Veillard <veillard@redhat.com>
Tue, 7 Oct 2008 16:01:23 +0000 (16:01 +0000)
(Guido Günther)
Daniel

ChangeLog
src/qemu_driver.c

index da496a64651eeea4817fd77a218063ad1b37150d..4a769fda868a6f426787e51b5cfd7570d2f41b26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct  7 17:59:59 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+       * src/qemu_driver.c: don't print and extra OOM error on top of
+         getpwuid error (Guido Günther)
+
 Mon Oct  6 15:47:00 EST 2008 Cole Robinson <crobinso@redhat.com>
 
        * qemud/remote.c src/hash.c src/internal.h src/lxc_conf.c
index b003b00a2423b019d258f8ff99ea98dd899644fb..34d494fdcca6f401ded638ab8d111054f2383272 100644 (file)
@@ -201,7 +201,7 @@ qemudStartup(void) {
         if (!(pw = getpwuid(uid))) {
             qemudLog(QEMUD_ERR, _("Failed to find user record for uid '%d': %s\n"),
                      uid, strerror(errno));
-            goto out_of_memory;
+            goto out_nouid;
         }
 
         if (asprintf(&qemu_driver->logDir,
@@ -267,6 +267,7 @@ qemudStartup(void) {
  out_of_memory:
     qemudLog (QEMUD_ERR,
               "%s", _("qemudStartup: out of memory\n"));
+ out_nouid:
     VIR_FREE(base);
     VIR_FREE(qemu_driver);
     return -1;