From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: [PATCH] kvm tools: Add missing space before root= option Date: Wed, 20 Apr 2011 19:49:12 +0400 Message-ID: <4DAF0078.2060207@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm-vger To: Pekka Enberg Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:43289 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671Ab1DTPtU (ORCPT ); Wed, 20 Apr 2011 11:49:20 -0400 Received: by bwz15 with SMTP id 15so719955bwz.19 for ; Wed, 20 Apr 2011 08:49:18 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: If user pases own options we need an extra space otherwise options get joined. Signed-off-by: Cyrill Gorcunov --- tools/kvm/kvm-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.git/tools/kvm/kvm-run.c ===================================================================== --- linux-2.6.git.orig/tools/kvm/kvm-run.c +++ linux-2.6.git/tools/kvm/kvm-run.c @@ -383,7 +383,7 @@ int kvm_cmd_run(int argc, const char **a } if (!strstr(real_cmdline, "root=")) - strlcat(real_cmdline, "root=/dev/vda rw ", sizeof(real_cmdline)); + strlcat(real_cmdline, " root=/dev/vda rw ", sizeof(real_cmdline)); if (image_filename) { kvm->disk_image = disk_image__open(image_filename, readonly_image);