提交 9f4c0479 编写于 作者: D Daniel Veillard

* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error

(Guido Günther)
Daniel
上级 e2a43cdb
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
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册