qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number


From: Michael Tokarev
Subject: Re: [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number
Date: Thu, 22 Apr 2010 13:40:02 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.8) Gecko/20100306 Icedove/3.0.3

11.03.2010 18:34, Michael Tokarev wrote:
[]
On version 0.12.3, -drive serial=XXX option does not work.
Below patch fixes it. 'serial' is pointer, not array.


--- qemu-kvm-0.12.3+dfsg/vl.c   2010-02-26 11:34:00.000000000 +0900
+++ qemu-kvm-0.12.3+dfsg.old/vl.c       2010-03-11 02:26:00.134217787 +0900
@@ -2397,7 +2397,7 @@
      dinfo->on_write_error = on_write_error;
      dinfo->opts = opts;
      if (serial)
-        strncpy(dinfo->serial, serial, sizeof(serial));
+        strncpy(dinfo->serial, serial, sizeof(dinfo->serial));
      QTAILQ_INSERT_TAIL(&drives, dinfo, next);
      if (is_extboot) {
          extboot_drive = dinfo;

Folks, can we please add this trivial one-liner to -stable or something?
It has been one and a half months since it has been fixed in debian...

Thanks!

/mjt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]