[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, experimental, updated. debian/1%1.21.40-1

Richard W.M. Jones rjones at redhat.com
Sat Jun 1 11:05:06 UTC 2013


The following commit has been merged in the experimental branch:
commit c74f7f15cbb9bf67447e66ed64356f7346c5effc
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon May 20 21:46:49 2013 +0100

    examples: If user does 'mount-local --help' don't create a disk image called '--help'.

diff --git a/examples/mount-local.c b/examples/mount-local.c
index 9b80d3a..18970d0 100644
--- a/examples/mount-local.c
+++ b/examples/mount-local.c
@@ -53,6 +53,11 @@ main (int argc, char *argv[])
     exit (EXIT_FAILURE);
   }
 
+  if (argv[1][0] == '-') {
+    usage ();
+    exit (EXIT_FAILURE);
+  }
+
   printf ("\n"
           "This is the 'mount-local' demonstration program.  Follow the\n"
           "instructions on screen.\n"

-- 
Libguestfs Debian packaging



More information about the Pkg-libvirt-commits mailing list