lintian doesn't like orphan packages with uploaders...
[debian/amanda] / amandad-src / amandad_util.c
index 7444c5ea3e051dd5553900d2abfbbaa5f5416ae6..3bc5ab2b66eabe509f23367d7dcaa9e4615c0bea 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -28,6 +29,7 @@
  *
  */
 
+#include "amanda.h"
 #include "amandad.h"
 #include "util.h"
 
@@ -64,18 +66,24 @@ parse_g_options(
 
     while (tok != NULL) {
        if(strncmp(tok,"features=", 9) == 0) {
+           char *t = tok+9;
+           char *u = strchr(t, ';');
+           if (u)
+              *u = '\0';
            if(g_options->features != NULL) {
                dbprintf(_("multiple features option\n"));
                if(verbose) {
                    g_printf(_("ERROR [multiple features option]\n"));
                }
            }
-           if((g_options->features = am_string_to_feature(tok+9)) == NULL) {
-               dbprintf(_("bad features value \"%s\"\n"), tok+10);
+           if((g_options->features = am_string_to_feature(t)) == NULL) {
+               dbprintf(_("bad features value \"%s\"\n"), t);
                if(verbose) {
-                   g_printf(_("ERROR [bad features value \"%s\"]\n"), tok+10);
+                   g_printf(_("ERROR [bad features value \"%s\"]\n"), t);
                }
            }
+           if (u)
+              *u = ';';
        }
        else if(strncmp(tok,"hostname=", 9) == 0) {
            if(g_options->hostname != NULL) {