[Pkg-libvirt-commits] [libguestfs] 164/233: make-fs: Ensure --partition (on its own) creates an MBR partition.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:11:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit a8a655a85900297f0ddb3d599a09b80b9be8581a
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Jan 29 08:18:05 2014 +0000

    make-fs: Ensure --partition (on its own) creates an MBR partition.
    
    This fixes commit d3512deb6728dffbb3a958c7168b81dbde56d748.
---
 make-fs/make-fs.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/make-fs/make-fs.c b/make-fs/make-fs.c
index 916ddde..81b1218 100644
--- a/make-fs/make-fs.c
+++ b/make-fs/make-fs.c
@@ -134,7 +134,10 @@ main (int argc, char *argv[])
         label = optarg;
       }
       else if (STREQ (long_options[option_index].name, "partition")) {
-        partition = optarg;
+        if (optarg == NULL)
+          partition = "mbr";
+        else
+          partition = optarg;
       } else {
         fprintf (stderr, _("%s: unknown long option: %s (%d)\n"),
                  program_name, long_options[option_index].name, option_index);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list