]> xenbits.xensource.com Git - libvirt.git/commitdiff
Tue Aug 7 14:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Aug 2007 13:24:22 +0000 (13:24 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Aug 2007 13:24:22 +0000 (13:24 +0000)
        * qemud/qemud.c: Fix --config/-f option to libvirtd.

ChangeLog
qemud/qemud.c

index 6e02786ddaae1d6c6fb84c0e44de6e8f2bddc0b5..db852476e3b236f28c72462f2d40b08338d05f23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Aug  7 14:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
+
+       * qemud/qemud.c: Fix --config/-f option to libvirtd.
+
 Tue Aug  7 13:58:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
 
        * acinclude.m4, configure.in: ./configure option
index 3520f3016d8a3b7ba200c3786383d545008a8c34..9f4d5344140aed0409cf969101d2568ebbe8fe4e 100644 (file)
@@ -1595,7 +1595,7 @@ Options:\n\
   -d | --daemon          Run as a daemon & write PID file.\n\
   -l | --listen          Listen for TCP/IP connections.\n\
   -t | --timeout <secs>  Exit after timeout period.\n\
-  -c | --config <file>   Configuration file.\n\
+  -f | --config <file>   Configuration file.\n\
   -p | --pid-file <file> Change name of PID file.\n\
 \n\
 libvirt management daemon:\n\
@@ -1639,7 +1639,7 @@ int main(int argc, char **argv) {
         { "verbose", no_argument, &verbose, 1},
         { "daemon", no_argument, &godaemon, 1},
         { "listen", no_argument, &ipsock, 1},
-        { "config", required_argument, NULL, 'c'},
+        { "config", required_argument, NULL, 'f'},
         { "timeout", required_argument, NULL, 't'},
         { "pid-file", required_argument, NULL, 'p'},
         { "help", no_argument, NULL, '?' },
@@ -1651,7 +1651,7 @@ int main(int argc, char **argv) {
         int c;
         char *tmp;
 
-        c = getopt_long(argc, argv, "ldfp:t:v", opts, &optidx);
+        c = getopt_long(argc, argv, "ldf:p:t:v", opts, &optidx);
 
         if (c == -1) {
             break;
@@ -1692,7 +1692,9 @@ int main(int argc, char **argv) {
             return 2;
 
         default:
-            abort();
+            fprintf (stderr, "libvirtd: internal error: unknown flag: %c\n",
+                     c);
+            exit (1);
         }
     }