[Pkg-libvirt-maintainers] Bug#507553: Bug#507553: libvirt: simple logrotate

Guido Günther agx at sigxcpu.org
Thu Dec 4 13:16:02 UTC 2008


forwarded 507553 libvir-list at redhat.com

Hi Harald,
On Tue, Dec 02, 2008 at 01:14:33PM +0100, Harald Staub wrote:
> +++ libvirt-0.4.4/src/qemu_driver.c     2008-12-02 12:48:32.271881000 +0100
> @@ -844,7 +844,7 @@
>          return -1;
>      }
> 
> -    if ((vm->logfile = open(logfile, O_CREAT | O_TRUNC | O_WRONLY,
> +    if ((vm->logfile = open(logfile, O_CREAT | O_APPEND | O_WRONLY,
>                              S_IRUSR | S_IWUSR)) < 0) {
>          qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
>                           _("failed to create logfile %s: %s"),
> 
Makes sense to me. Would you also attach your logrotate snippet so we
can ship it?
Thanks,
 -- Guido





More information about the Pkg-libvirt-maintainers mailing list